I have clear cache in my nuxt.js application with npx nuxi clean , this command removes .nuxt
, .output
, node_modules/.vite
and node_modules/.cache
. So inorder to run the app again I need to run npm install
and then start the serve with npm run dev
.
But I receive the below message without ending. Error: Reloding server...
How do I stop this.
I would like to answer my own question after a day of research. I found out that by adding the below code in nuxt.config.ts
solved the issue
export default defineNuxtConfig({
nitro: {
esbuild: {
options: {
target: 'esnext'
}
}
}
})
thereafter every thing works back to normally again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.