Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
useExperimentalClosure in prod mode leads to
Uncaught Error: Cannot mix multi providers and regular providers, got: [object Object] [object Object]
error in prod mode
What behavior are you expecting?
when use
"build": "ionic-app-scripts build --rollup ./config/rollup.config.js --experimentalPurgeDecorators true --useExperimentalClosure true ",
everything goes well
but after add --prod, the page went error.
Steps to reproduce:
-
ionic start demo tabs
- modify the package.json,
"build": "ionic-app-scripts build --rollup ./config/rollup.config.js --experimentalPurgeDecorators true --useExperimentalClosure true --prod",
- open the browser, and error show in console.
insert any relevant code between the above and below backticks
Which @ionic/app-scripts version are you using?
2.1.4
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
main.js:948 Uncaught Error: Cannot mix multi providers and regular providers, got: [object Object] [object Object]
at Function.b.resolve (main.js:948)
at Function.b.rB (main.js:949)
at main.js:797
at main.js:797
at main.js:1458
at main.js:1458