vite-plugin-pwa icon indicating copy to clipboard operation
vite-plugin-pwa copied to clipboard

Failed to resolve entry for package "vite-plugin-pwa".

Open ekkotest opened this issue 5 months ago • 4 comments

Failed to resolve entry for package "vite-plugin-pwa". The package may have incorrect main/module/exports specified in its package.json. [plugin externalize-deps]

../../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1373:27:
  1373 │         let result = await callback({
       ╵                            ^

ekkotest avatar Jan 19 '24 16:01 ekkotest

how are you using the pwa plugin?

userquin avatar Jan 19 '24 17:01 userquin

how are you using the pwa plugin?

cd vite-plugin-pwa/examples/vue-router pnpm i pnpm run dev just like other rep

ShuangDa1018 avatar Jan 24 '24 09:01 ShuangDa1018

You need to run pnpm install from root folder and before running any example you also need to run from root folder pnpm build

userquin avatar Jan 24 '24 10:01 userquin

fixed.

  1. in repo root folder: pnpm i && pnpm build
  2. use example/react-router as an example: pnpm -C examples/react-router/ run dev

so2liu avatar Feb 06 '24 09:02 so2liu