0

I simply change my application mode form developer to production.

php bin/magento deploy:mode:set production

Result-
Deployment of static content complete
Disabling maintenance mode
Enabled production mode.

Earlier my application was working without any js error in console. As I have written custom js modules according to syntax.

But in Production mode it shows error in console in static.min.js file.

Uncaught TypeError: Cannot read property '*' of undefined
at Object.getAffectedSections (eval at require.load (static.min.js:9), <anonymous>:5:90)
at HTMLDocument.eval (eval at require.load (static.min.js:9), <anonymous>:7:2379)
at HTMLDocument.dispatch (eval at require.load (static.min.js:9), <anonymous>:340:447)
at HTMLDocument.elemData.handle (eval at require.load (static.min.js:9), <anonymous>:313:172)
at Object.trigger (eval at require.load (static.min.js:9), <anonymous>:334:211)
at Object.jQuery.event.trigger (eval at require.load (static.min.js:9), <anonymous>:56:21)
at done (eval at require.load (static.min.js:9), <anonymous>:632:98)
at callback (eval at require.load (static.min.js:9), <anonymous>:657:15)
at Object.send (eval at require.load (static.min.js:9), <anonymous>:657:103)
at Function.ajax (eval at require.load (static.min.js:9), <anonymous>:623:23)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.