An error occurred in the newly installed next.js. Parsing error: Cannot find module 'next/babel' #65826
Unanswered
aboutjquery
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
As the title indicates, there is an error in the newly installed next.js. For example, in the first line of next.config.mjs /** @type {import('next').NextConfig} */ vscode prompts error Parsing error: Cannot find module 'next/babel'
I think next.js is used by many people so I want to try it. How did I know that strange errors occurred at the beginning? Since npx answered a few questions as options during installation and generated a bunch of files, I thought it should be complete enough. Please tell me. How to solve this problem, and does this problem occur with every new installation? thanks
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions