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.
npm install [email protected]
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 ?
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.
if you update package don't forget to remove package-lock.json
then run rm -rf node_modules && npm i
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.
I'll open this as a new issue, because it's a bug IMHO.
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
I'm getting this for a freshly installed react-scripts running on windows for typescript
no issue on mac
@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.
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 [email protected] 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/[email protected] 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/[email protected] 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?
Most helpful comment
I've just solved it doing:
Hope it works for you!