I can use Module in DEV environment, but after I minimize it with "browserify -s main dist/app/main.js > dist/bundle.js" command, I get the error "(index):40 Error: (SystemJS) Cannot read property 'toString' of undefined(…)" on my PROD env.
It happens after I include the module:
SlimLoadingBarModule.forRoot()
I can use Module in DEV environment, but after I minimize it with "browserify -s main dist/app/main.js > dist/bundle.js" command, I get the error "(index):40 Error: (SystemJS) Cannot read property 'toString' of undefined(…)" on my PROD env.
It happens after I include the module:
SlimLoadingBarModule.forRoot()