Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Import system is not working #4870

Closed
codehunter13 opened this issue Jan 18, 2018 · 4 comments
Closed

New Import system is not working #4870

codehunter13 opened this issue Jan 18, 2018 · 4 comments
Assignees

Comments

@codehunter13
Copy link

Hi,

The new import system as documented on your website is not working:
import { ButtonModule } from 'primeng/button'; gives the error:
[at-loader] ./ClientApp/app/shared/shared.module.ts:9:30
TS7016: Could not find a declaration file for module 'primeng/button'. 'C:/Projects/Pleegzorg/Pleegzorg.Web/node_modules/primeng/button.js' implicitly has an 'any' type.
Try npm install @types/primeng/button if it exists or add a new declaration (.d.ts) file containing declare module 'primeng/button';

Regards,
Glenn

@cagataycivici
Copy link
Member

Can you send us a sample project to help us replicate, we've tried several times with no luck.

@cagataycivici cagataycivici self-assigned this Jan 19, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 19, 2018
@cagataycivici cagataycivici added this to the 5.2.0-RC2 milestone Jan 19, 2018
@cagataycivici
Copy link
Member

Can you please create a file name button.d.ts under node_modules/primeng with the following content and try again;

button.d.ts

export * from './components/button/button';

@cagataycivici
Copy link
Member

cagataycivici commented Jan 19, 2018

screen shot 2018-01-19 at 15 57 36

So that node_modules/primeng/button.js and node_modules/primeng/button.d.ts look side by side.

@cagataycivici
Copy link
Member

Tracked at;

#4841

@cagataycivici cagataycivici removed this from the 5.2.0-RC2 milestone Jan 19, 2018
@mertsincan mertsincan removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants