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

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

Closed
bonniesimon opened this issue Aug 7, 2020 · 6 comments · Fixed by #16048
Closed

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

bonniesimon opened this issue Aug 7, 2020 · 6 comments · Fixed by #16048
Assignees
Labels
please add a complete reproduction The issue lacks information for further investigation
Milestone

Comments

@bonniesimon
Copy link

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
@jamesmosier
Copy link
Contributor

Could you provide a reproduction for this?

@jamesmosier jamesmosier added the please add a complete reproduction The issue lacks information for further investigation label Aug 7, 2020
@bonniesimon
Copy link
Author

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?

@timneutkens
Copy link
Member

A github repository that we can look at and run.

@Timer
Copy link
Member

Timer commented Aug 10, 2020

There's two things in this issue:

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

This is a harmless warning that can only be fixed by upgrading Next.js.

SyntaxError: JSON5: invalid end of input at 1:1

This error is caused by an invalid JSON file in your project. New Next.js versions will now show you the file name and stack trace instead of emitting this unactionable error (already fixed).

@Timer Timer added this to the iteration 7 milestone Aug 10, 2020
@Timer
Copy link
Member

Timer commented Aug 10, 2020

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

@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 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
please add a complete reproduction The issue lacks information for further investigation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants