I am deploying my new stripe module upgrade changes in a Magento production environment. In the development environment, it is deployed successfully and running well. But in a production environment when I deploy it, it throws this error.

Uncaught ReferenceError: initStripe is not defined

enter image description here

After deployment by git pull i run all the required magento commands but it does not work

php bin/magento s:up && php bin/magento s:d:c && php bin/magento s:s:d -f  

1 Answer 1


That was cloud flare cache issue. Page JS file are loaded from cloud flare cache, once cloud flare cache refreshed, the problem solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.