cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced JavaScript bundling: "ReferenceError: XMLHttpRequest is not defined" during "r.js -o"

SOLVED

Re: Advanced JavaScript bundling: "ReferenceError: XMLHttpRequest is not defined" during &

Maybe you would know why after advanced bundling product gallery script is not executed?

Re: Advanced JavaScript bundling: "ReferenceError: XMLHttpRequest is not defined" during &

It might be solved in another way (simple and stupid). Both Magento and Requirejs text.js files might be merged into one, but split by 

if (typeof window === 'undefined')

 So on backend side correct Requirejs file will do the magic, while there will be Magento file executed on frontend

Re: Advanced JavaScript bundling: "ReferenceError: XMLHttpRequest is not defined" during &

I have fixed this problem by replacing in my build.js paths section following line

'text': 'mage/requirejs/text'

to

"text": "requirejs/text"