November Happy Hour will be moved to Thursday December 5th.

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
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.