Issues with Bundling javascript files

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Does anyone know how I can stop v4.2 bundling the css and js files?  I have fixed the Cookie warning issue by turning off the HTML minify option in the admin interface.

So, now I am unable to add products from the listing page, I get the error:

Failed to add the product. Please refresh the page and try one more time.

When I go into the product page the console in my browser returns these errors:

2qnm-gli8db58uhpvdq6zbthoiqodu7cgtuoxgor6ou.min.js:17 Uncaught SyntaxError: Unexpected end of input
287-x-495-pad-filter:1035 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1035
(anonymous) @ 287-x-495-pad-filter:1035
287-x-495-pad-filter:1048 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1048
(anonymous) @ 287-x-495-pad-filter:1048
287-x-495-pad-filter:1057 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1057
(anonymous) @ 287-x-495-pad-filter:1057
287-x-495-pad-filter:1142 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1142
(anonymous) @ 287-x-495-pad-filter:1142
287-x-495-pad-filter:1150 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1150
(anonymous) @ 287-x-495-pad-filter:1150
287-x-495-pad-filter:1160 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1160
(anonymous) @ 287-x-495-pad-filter:1160
287-x-495-pad-filter:1176 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1176
(anonymous) @ 287-x-495-pad-filter:1176
287-x-495-pad-filter:1185 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1185
(anonymous) @ 287-x-495-pad-filter:1185
287-x-495-pad-filter:1220 Uncaught ReferenceError: AjaxCart is not defined
    at 287-x-495-pad-filter:1220
(anonymous) @ 287-x-495-pad-filter:1220
287-x-495-pad-filter:1223 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1223
(anonymous) @ 287-x-495-pad-filter:1223
287-x-495-pad-filter:1263 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1263
(anonymous) @ 287-x-495-pad-filter:1263
287-x-495-pad-filter:1279 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1279
(anonymous) @ 287-x-495-pad-filter:1279
287-x-495-pad-filter:1294 Uncaught ReferenceError: $ is not defined
    at 287-x-495-pad-filter:1294

When you look at the bundled .js file it appears to just stop, like it's just got bored.  Also, it's not always stopping at the same point every time.

Any help or advice would be really useful.
4 years ago
Michael@Work wrote:
Does anyone know how I can stop v4.2 bundling the css and js files?  I have fixed the Cookie warning issue by turning off the HTML minify option in the admin interface.

At this same place as HTML minify you may find:
JavaScript bundling and minification  
CSS bundling and minification
Restart application after change and clear browser cache.

Regards,
Tom
4 years ago
Hi Tom,

Thank you so much for the assistance.  Yes I found the entries and changed them and restarted.

Now all the separate CSS and Javascript files are now being listed, but it looks like my IIS is still not serving the full JS files all the time.  When you look at the min.js file on the server compared to what is received by the browser the file received appears to be just cut off.

It's all very strange.
4 years ago
Further to my previous posts, I am still unable to use the Admin site in anything other than Internet Explorer.

I am getting an unexpected end of file on the Admin html page.  When I look at the source i am missing the html> at the end of the page.

It's like it's losing the last byte of text, which is the same as the issue with the serving of js files.
4 years ago
And breathe...

It turns out to be an issue with the Brotli compression modules.  I deleted them from within IIS, added in FileCacheModule and it has all started working properly.

Thank you to everyone who has helped me over the last few days, it has been a crash course in how to debug a web application!

:-)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.