I have added my custom script in footer
<script async src='https://cdnfrontend.s3.ap-south-1.amazonaws.com/CDN/cheerme-prod/cheerme.min.js' charset='utf-8'></script>
That script is working on development mode,
but not on production mode it gives error
Uncaught Error: Script error for: buoyhttp://requirejs.org/docs/errors.html#scripterror
Uncaught TypeError: Cannot read property 'init' of undefined
Why it is working on development mode not on production mode?
Kindly refer below link for your issue:https://stackoverflow.com/questions/53010304/how-do-fix-cannot-read-property-init-of-undefined-typee...It may help!Thank you.