nuxt-server-utils icon indicating copy to clipboard operation
nuxt-server-utils copied to clipboard

Error on run regarding [ @nuxt/kit ]

Open ramyahm2010 opened this issue 1 year ago • 8 comments

Hello,

When trying to run Nuxt app, I get following error message: This module cannot be imported in server runtime. [importing @nuxt/kit from node_modules/nuxt-server-utils/dist/runtime/server/plugins/mongoose.mjs]

I use following dependencies: "dependencies": { "@mdi/font": "^7.4.47", "jsonwebtoken": "^9.0.2", "nuxt": "^3.10.1", "nuxt-server-utils": "^0.0.7", "ts-md5": "^1.3.1", "vue": "^3.4.15", "vue-router": "^4.2.5" }, "devDependencies": { "@nuxt/devtools": "^1.0.8", "mongoose": "^8.1.1", "sass": "^1.70.0", "vite-plugin-vuetify": "^2.0.1", "vuetify": "^3.5.2" }

Kindly, note that app is working fine, just the ERROR message appears !

regards,

ramyahm2010 avatar Feb 10 '24 07:02 ramyahm2010