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.

Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`

See original GitHub issue

Bug 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

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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Timercommented, Aug 10, 2020

This was fixed in next@^9.5.2-canary.14. Please upgrade and let us know!

1reaction
bonniesimoncommented, Aug 8, 2020

Could you provide a reproduction for this?

I’m sorry but I don’t know what that means. Could you explain to me on how to give proper reproduction for this?

Read more comments on GitHub >

github_iconTop 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 >

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