My package.json is like
"scripts": {
"dev": "next dev"
},
"dependencies": {
"next": "^12.1.5",
"react": "^18.0.0",
"react-dom": "^18.0.0"
}
After starting dev, I am getting the below error.
error - ./node_modules/next/dist/client/dev/amp-dev.js
Module not found: Can't resolve 'D:\mywebsites\next.jsudemy\next-blog\node_modules\next\dist\compiled\regenerator-runtime\runtime.js' in 'D:\mywebsites\next.js\udemy\next-blog\node_modules\next\dist\client\dev'
CodePudding user response:
As I have same issues, I have downgraded [email protected] and [email protected]
Now seems working.
CodePudding user response:
Facing the same issue with React 18. Maybe NextJS doesn't support V18 for the time being? Haven't found much on their official git either.