简体   繁体   中英

Reloading server in nuxt3js after Clear Cache

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM