Hi,
following command builds app, which works just fine:
ng build --target=development --environment=prod --base-href
/$npm_package_config_contextpath/
but if I try to replace that with
ng build --target=production --environment=prod --base-href
/$npm_package_config_contextpath/
I got following errors (I'm showing only exception messages):
EXCEPTION: No provider for t!
vendor.314f210….bundle.js:570 ORIGINAL STACKTRACE:
vendor.314f210….bundle.js:570 Error: DI Error
vendor.314f210….bundle.js:570 EXCEPTION: Uncaught (in promise): Error: DI
Error
Error: DI Error
vendor.314f210….bundle.js:570 ORIGINAL STACKTRACE:
vendor.314f210….bundle.js:570 Error: Uncaught (in promise): Error: DI Error
Error: DI Error
polyfills.483ff57….bundle.js:36 Unhandled Promise rejection: No provider
for t! ; Zone: angular ; Task: Promise.then ; Value: e
{__zone_symbol__error: Error: DI Error
polyfills.483ff57….bundle.js:36 g {__zone_symbol__error: Error: Uncaught
(in promise): Error: DI Error
Error: DI Error
any idea why is this happening? I (kinda) thought, that --prod should only
enable some more agressive optimizations, but this seem too agressive ;)
thanks for any hint,
M.
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.