SaaS CMS has officially launched! Learn more now.

WebOptimizer bundling throws 'Uncaught Error: Cannot find module...'


Using LigerShark.WebOptimizer v3.0.405 with EPiServer.CMS 12.28.0 and the following config:

"webOptimizer": {
  "enableTagHelperBundling": true

In a browser we get the error:
Uncaught Error: Cannot find module

What can I add or where can I look to get an idea of what the problem is?

Apr 02, 2024 18:21

Hi Mike,

I do not see any problem with this package. It may be due to bundling issue with your real js files. There may be syntax errors when minifying js files and all js content are not in bundled file. Just look in bundled file and see which js missing and fix syntax.

Apr 16, 2024 10:59

I'm still trying to figure out where the issue is, I tried this...

Apr 17, 2024 19:21

We switched to terser instead of uglify and this solved out issue.


May 14, 2024 19:35
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.