Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
See original GitHub issueBug report
Describe the bug
When running yarn dev
the following error pops up.
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
SyntaxError: JSON5: invalid end of input at 1:1
at syntaxError (/mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/compiled/json5/index.js:1:28937)
at invalidEOF (/mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/compiled/json5/index.js:1:28324)
at Object.start (/mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/compiled/json5/index.js:1:26739)
at Object.parse (/mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/compiled/json5/index.js:1:19805)
at parseJsonFile (/mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/build/webpack-config.js:1:3388)
at getBaseWebpackConfig (/mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/build/webpack-config.js:8:193)
at async Promise.all (index 0)
at async HotReloader.start (/mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/server/hot-reloader.js:14:1788)
at async DevServer.prepare (/mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/server/next-dev-server.js:10:1565)
at async /mnt/d/Coding/projects/nextjs-blog/node_modules/next/dist/cli/next-dev.js:21:359 {
lineNumber: 1,
columnNumber: 1
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
To Reproduce
run yarn dev
yarn list
Expected behavior
local server starts up.
System information
- OS: WSL on windows 10 2004
- Version of Next.js: 9.3.5
- Version of Node.js: 12.8.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
caniuse-lite is outdated. Please run next command `npm ...
First, as the message says, I ran npm update caniuse-lite browserslist but it didn't fix the issue. I deleted the whole node_modules directory ......
Read more >caniuse-lite is outdated. Please run: npx browserslist@latest ...
Unable to upgrade + Incorrect delegation of responsibility - "Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db" #663.
Read more >ERROR: Browserslist: caniuse-lite is outdated - SonarQube
It's just an error in the logs and probably some other side-effects like not properly analysing all the “current” rules that would come...
Read more >caniuse-lite is outdated. Please run: npx browserslist@latest
These following steps worked for me and I hope this help you out. Run the following commands,. rm -rf node_modules/; yarn; yarn upgrade...
Read more >Browserslist: caniuse-lite is outdated - CircleCI Discuss
I'm getting the following logs when running some tests. Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This was fixed in
next@^9.5.2-canary.14
. Please upgrade and let us know!I’m sorry but I don’t know what that means. Could you explain to me on how to give proper reproduction for this?