SaaS CMS has officially launched! Learn more now.

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

Vote:
 

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?

#319876
Apr 02, 2024 18:21
Vote:
 

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.

#320574
Apr 16, 2024 10:59
Vote:
 

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

#320633
Apr 17, 2024 19:21
Vote:
 

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

.pipe(plugins.terser())

#322028
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.