Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundling throws 'Uncaught Error: Cannot find module...' #304

Open
Chaz-Commscope opened this issue Apr 9, 2024 · 1 comment
Open

Bundling throws 'Uncaught Error: Cannot find module...' #304

Chaz-Commscope opened this issue Apr 9, 2024 · 1 comment

Comments

@Chaz-Commscope
Copy link

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

image

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

When it's set to False - it works and doesn't bundle the files and we see no errors - only happens when it's bundled.

@catester
Copy link

catester commented Jun 13, 2024

I got a similar error "webpack_require is not defined" after updating to the latest package (simple ASP.NET core web site). Guess it tries to process dependencies in already minified site template js file and produces an incorrect bundle? Rolled back to version 3.0.384 which works. Had to clear the cache folder and force refresh the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants