cancel
Showing results for 
Search instead for 
Did you mean: 

My script is working on development mode but not on production mode

My script is working on development mode but not on production mode

Hello,

 

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: buoy
http://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?

1 REPLY 1

Re: My script is working on development mode but not on production mode

Hi @amarpreetbd709 

 

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.

Problem solved? Click Accept as Solution!