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

use angular4 angular-cli build in prod environment error #3

Closed
yinyihui opened this issue May 26, 2017 · 10 comments
Closed

use angular4 angular-cli build in prod environment error #3

yinyihui opened this issue May 26, 2017 · 10 comments

Comments

@yinyihui
Copy link

In my angular4 project, it runs perfectly, but when i use "ng build -prod", it gose in errors like this:
ERROR in ng:///.../node_modules/ng2-notify-popup/ng2-notify-popup.d.ts.ɵa.html (2,26): Property 'location' does not exi
st on type 'NotificationComponent'.

ERROR in ng:///.../node_modules/ng2-notify-popup/ng2-notify-popup.d.ts.ɵa.html (2,26): Property 'location' does not exi
st on type 'NotificationComponent'.

i just use this component follow the README section Usage and use it in my AppModule.

plz help!

@shubhi1407
Copy link
Owner

Fixed
Install latest version using
npm install --save ng2-notify-popup@latest

@yinyihui
Copy link
Author

It works fine!Thanks a lot!

@yinyihui
Copy link
Author

Sorry to trouble again! There are some warnings when i build in prod, like this:
WARNING in ./src/$$_gendir/app/app.module.ngfactory.ts
656:37-48 "export 'ɵb' (imported as 'import29') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/app/app.module.ngfactory.ts
1096:23-34 "export 'ɵb' (imported as 'import29') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/~/ng2-notify-popup/ng2-notify-popup.ngfactory.ts
245:36-46 "export 'ɵb' (imported as 'import1') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/~/ng2-notify-popup/ng2-notify-popup.ngfactory.ts
362:23-33 "export 'ɵb' (imported as 'import1') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/~/ng2-notify-popup/ng2-notify-popup.ngfactory.ts
495:37-47 "export 'ɵa' (imported as 'import1') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/~/ng2-notify-popup/ng2-notify-popup.ngfactory.ts
498:48-58 "export 'ɵa' (imported as 'import1') was not found in 'ng2-notify-popup'

then the vendor gives the error:
image

@verena91
Copy link

verena91 commented Jul 2, 2017

Hi @yinyihui @shubhi1407 I'm facing the same issue, did you solve the problem?

@yinyihui
Copy link
Author

yinyihui commented Jul 3, 2017

@verena91 I still have this problem,so I just change the component.

@vishnuindrabalan
Copy link

vishnuindrabalan commented Aug 18, 2017

@verena91 @yinyihui @shubhi1407 I am also facing the same issue. How you fixed this?

@SantoshTirukkovilour
Copy link

SantoshTirukkovilour commented Aug 25, 2017

Dear @shubhi1407
Thank you for developing this component, it is very useful to use in angular application.

We are getting following issue when we tried to run the command "ng build --prod". We appreciate your help if you can fix this issue, else let us know if you have any suggestions. So that we can try to fix it as you suggest.

WARNING in ./src/$$_gendir/app/app.module.ngfactory.ts
117:85-91 "export '?b' (imported as 'i25') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/app/app.module.ngfactory.ts
117:93-99 "export '?b' (imported as 'i25') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/app/app.module.ngfactory.ts
118:73-79 "export '?b' (imported as 'i25') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/~/ng2-notify-popup/ng2-notify-popup.ngfactory.ts
29:22-27 "export '?b' (imported as 'i1') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/~/ng2-notify-popup/ng2-notify-popup.ngfactory.ts
29:29-34 "export '?b' (imported as 'i1') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/~/ng2-notify-popup/ng2-notify-popup.ngfactory.ts
75:142-147 "export '?a' (imported as 'i1') was not found in 'ng2-notify-popup'

WARNING in ./src/$$_gendir/~/ng2-notify-popup/ng2-notify-popup.ngfactory.ts
77:43-48 "export '?a' (imported as 'i1') was not found in 'ng2-notify-popup'

Appreciate your quick help
Thanks in Advance
Santosh Kumar

Appreciate others ( @vishnuindrabalan, @verena91, @yinyihui ) also if you can help us to fix this issue.

@Hesesses
Copy link

Hesesses commented Oct 3, 2017

Any news about this?

@bhushangahire
Copy link

+1 I am also getting the same issue.

image

@yinyihui
Copy link
Author

yinyihui commented Oct 12, 2017

@Hesesses @bhushangahire
plz follow the issue #6

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

7 participants