question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module 'loader-utils'

See original GitHub issue

Current behaviour 💣

Error: Cannot find module ‘loader-utils’

Expected behaviour ☀️

It should work properly

Reproduction Example 👾

Environment 🖥

"html-webpack-plugin": "5.3.0",
"typescript": "^4.2.3",
"webpack": "^5.24.3"

here

https://github.com/jantimon/html-webpack-plugin/blob/6f39192da6d68bb58c178cc769d0c8c810bf82e7/index.js#L17

but

https://github.com/jantimon/html-webpack-plugin/blob/6f39192da6d68bb58c178cc769d0c8c810bf82e7/package.json#L52-L58

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
jantimoncommented, Mar 9, 2021

Published as html-webpack-plugin@5.3.1

1reaction
jantimoncommented, Mar 8, 2021

Oh I am very sorry I thought you would like to build that into the child compiler…

You are right your code would work too 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack Cannot find module 'loader-utils'? - Stack Overflow
style-loader and webpack already have loader-utils package under their node_modules folder but it still cant find this module? ERROR in ...
Read more >
Cannot find module 'loader-utils' even though it is ... - GitHub
I am using razzle with yarn PlugNPlay for my project, and after yarn install I had to add/modify some packages and configuration in...
Read more >
loader-utils - npm
Converts some resource URL to a webpack module request. i Before call urlToRequest you need call isUrlRequest to ensure it is requestable url....
Read more >
Cannot find module 'internal/modules/cjs/loader.js' | bobbyhadz
To solve the error Cannot find module 'internal/modules/cjs/loader.js', make sure you are pointing the node command to a file that exists on your...
Read more >
loader-utils - npm Package Health Analysis - Snyk
We found a way for you to contribute to the project! Looks like loader-utils is missing a security policy. You can connect your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found