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 'webpack-obfuscator/loader'

See original GitHub issue

I’ve added

{
  ...
  loader: `webpack-obfuscator/loader`
  ...
}

to my webpack config. When building my App (vue.js) the module cannot be resolved.

using loader: path.resolve(__dirname, './node_modules/webpack-obfuscator/dist/loader') works as expected.

Versioninformation:

  • OS: macOS Catalina 10.15.5
  • node: v12.16.2
  • webpack: 4.43.0
  • webpack-obfuscator: 1.8.1

If you need further information, please let me know

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sanex3339commented, Jul 28, 2020

I expected this =( Right now use path.resolve(__dirname, './node_modules/webpack-obfuscator/dist/loader'). I have to think about how to fix it.

0reactions
enkr1commented, Jul 5, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Error: Cannot find module 'webpack' - Stack Overflow
Error: Cannot find module 'webpack' is a node error. So this has nothing to do with webpack itself (afaict). It seems like node...
Read more >
webpack-obfuscator - npm
Define a rule in your webpack config and use the obfuscator-loader as the last of your loaders for your modules.
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
In my case, I got it like this "Module not found: Error: Can't resolve 'react-icons/fa' in 'C:\Users\user\Desktop\Projects\Address Locator\ ...
Read more >
How to fix Error: cannot find module "webpack" - Educative.io
The Cannot find module webpack occurs when webpack is not globally installed. It is a problem with the npm script or application. You...
Read more >
[Solution] Error: Cannot Find Module "nodemailer" - Courier
This is a common Nodemailer error -- get the solution for Error: Cannot Find Module "nodemailer".
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