jahidanowar / nuxt-server-utils

A collection of utilities for Nuxt server.
https://nuxt-server-utils.jahid.dev/
20 stars 4 forks source link

Error on run regarding [ @nuxt/kit ] #1

Open ramyahm2010 opened 5 months ago

ramyahm2010 commented 5 months ago

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,

majadul1989 commented 4 months ago

I have also same issue

navkuun commented 4 months ago

I'm also getting the same issue. Any update on this?

lorenzocarreri commented 3 months ago

I'm also getting the same issue, any update?

VinGitonga commented 3 months ago

Same issue here, any update?

quyumkehinde commented 2 months ago

+1. Any update on this?

quyumkehinde commented 2 months ago

I've raised a PR here with a fix to the issue. @jahidanowar please could you have a look? This seems to be causing problem for a number of people.