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

Cannot find module 'webpack/lib/RequestShortener' #2339

Closed
LeeTwelve opened this issue Jun 22, 2017 · 11 comments
Closed

Cannot find module 'webpack/lib/RequestShortener' #2339

LeeTwelve opened this issue Jun 22, 2017 · 11 comments

Comments

@LeeTwelve
Copy link

I updated to latest beta (16) and received error Error: Cannot find module 'webpack/lib/RequestShortener'.

rm -rf node_modules && npm i didn't fixed this.

@MiguhRuiz
Copy link

I've just solved it doing:

npm install webpack@2.5.1

Hope it works for you!

@vilmes21
Copy link

npm install webpack@2.5.1 worked. But I was already using 3.5.6, and now it's still 3.5.6 when I type webpack -v. Why did I have to install 2.5.1 ?

@jmpp
Copy link

jmpp commented Dec 18, 2017

Solved for webpack@^3.6.0 by manually installing webpack as a dev dependency

npm i --save-dev webpack

Hope that'll help if anyone encounter the same issue in the future.

@payns75
Copy link

payns75 commented Apr 21, 2018

if you update package don't forget to remove package-lock.json then run rm -rf node_modules && npm i

@vincenzo
Copy link

vincenzo commented Aug 16, 2018

I get this issue when I run npm install with NODE_ENV=production (don't ask, has to be that way). I shouldn't need to install webpack, since it's already there. Meaning: after install in "production mode", next build fails with that error.

@vincenzo
Copy link

I'll open this as a new issue, because it's a bug IMHO.

@ghost
Copy link

ghost commented Dec 7, 2018

Im having same error, when deploying to heroku, and dont know what to do with my Next APP ,cause it doesnt run on heroku neither Now, what should i do with the app?

Local is running

@quantuminformation
Copy link

I'm getting this for a freshly installed react-scripts running on windows for typescript

no issue on mac

@ltrain777
Copy link

@quantuminformation try deleting package-lock.json and node_modules dir, npm install, npm run build to see if that happens again? Fixed my create-react-app project that way.

@devinhalladay
Copy link

I'm getting this bug in a fresh create-react-app install. I get the error listed in the issue as well as dependency failures everywhere:

npm WARN react-scripts@3.3.0 requires a peer of typescript@^3.2.1 but none is installed. You must install peer dependencies yourself.
07:14:23 PM | npm WARN @typescript-eslint/eslint-plugin@2.12.0 requires a peer of eslint@^5.0.0 \|\| ^6.0.0 but none is installed. You must install peer dependencies yourself.
07:14:23 PM | npm WARN @typescript-eslint/parser@2.12.0 requires a peer of eslint@^5.0.0 \|\| ^6.0.0 but none is installed. You must install peer dependencies yourself.
......

I've tried everything listed above and no luck. Anyone else still running into issues?

timpavone1990 added a commit to timpavone1990/wccs-web-app that referenced this issue Jan 5, 2020
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants