Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant use npm run build #128

Open
ezioadf2 opened this issue Apr 9, 2024 · 0 comments
Open

cant use npm run build #128

ezioadf2 opened this issue Apr 9, 2024 · 0 comments

Comments

@ezioadf2
Copy link

ezioadf2 commented Apr 9, 2024

hi i started using pwa following documentation walkthrough, on nuxt run build command terminal show to me this error:
ERROR x Build failed in 3.22s 11:54:26 PM

ERROR Nuxt Build Error: [vite-plugin-inspect] ENOTEMPTY: directory not empty, rmdir 'G:\projects\nuxtSamples\PWA.nuxt\analyze.vite-inspect\assets'

I tried to reinstall packages and delete .nuxt folder but its not worked

package.json content:

{
    "name": "nuxt-app",
    "private": true,
    "type": "module",
    "scripts": {
        "build": "nuxt build",
        "dev": "nuxt dev",
        "generate": "nuxt generate",
        "preview": "nuxt preview",
        "postinstall": "nuxt prepare"
    },
    "dependencies": {
        "@vite-pwa/nuxt": "0.3.6",
        "nuxt": "^3.11.2",
        "vite": "3.2.3",
        "vue": "^3.4.21",
        "vue-router": "^4.3.0"
    }
}

app vue content:

<template>
  <div>
    <VitePwaManifest/>
    <NuxtWelcome />
  </div>
</template>

nuxt.config.ts:

export default defineNuxtConfig(<any>{
  devtools: { enabled: true },
  modules: ["@vite-pwa/nuxt"],
  pwa: {
    manifest:{
      name:"pwa",
      short_name:"short",
      description:"dsads"
    },
    workbox:{
      navigateFallback:"/",
    },
    devOptions:{
      enabled:true,
      type:"module"
    }
  },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant