Rechau
Cannot start nuxt: Cannot convert undefined or null to object
I have started a new project and fallowed instructions of getting started installation page.
Only commands I executed to install and start nuxt in dev mode:
npx nuxi@latest init my-project
npm run dev
(in my-project directory)
I am getting this error:
Cannot start nuxt: Cannot convert undefined or null to object =
at Function.values (<anonymous>)
at configureServer (node_modules/vite-plugin-inspect/dist/index.mjs:1410:12)
at configureServer (node_modules/vite-plugin-inspect/dist/index.mjs:1496:19)
at _createServer (node_modules/@nuxt/vite-builder/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:63080:26)
at async buildClient (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.B69gK6ir.mjs:733:24)
at async withLogs (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.B69gK6ir.mjs:1781:3)
at async bundle (node_modules/@nuxt/vite-builder/dist/shared/vite-builder.B69gK6ir.mjs:1772:3)
at async bundle (node_modules/nuxt/dist/index.mjs:6091:5)
at async build (node_modules/nuxt/dist/index.mjs:5966:3)
at async Promise.all (index 1)
If I run preview, it works. This issue is only in dev mode. Any ideas why or how to fix it?8 replies