Closed 256yangwei closed 1 year ago
Did you install everything successfully?
Please run yarn
or npm install
first.
Then you can run yarn dev
or npm run dev
I run npm install first, then run npm run dev,but the the error still exists.
Which version of Node.js, npm, and yarn is used in the project?
yarn -v 1.22.18 npm -v 8.15.0 node -v v16.17.1
I usually prefer yarn over npm. Can you see if that work? Otherwise share a bit more a bit more on your setup? Device / OS / software versions?
Someone else seemed to have a similar issues that was solved by switching to yarn See #20
Closing issue
PS D:\projects\js_projects\nexth> npm run dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000 error - ./src/pages/_app.tsx:3:0 Module not found: Can't resolve 'components/layout/Layout' 1 | import type { AppProps } from 'next/app' 2 | // import { Layout } from 'components/layout'
https://nextjs.org/docs/messages/module-not-found wait - compiling... error - ./src/pages/_app.tsx:2:0 Module not found: Can't resolve 'components/layout' 1 | import type { AppProps } from 'next/app'
https://nextjs.org/docs/messages/module-not-found