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

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

Open
ekkotest opened this issue Jan 19, 2024 · 4 comments
Open

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

ekkotest opened this issue Jan 19, 2024 · 4 comments

Comments

@ekkotest
Copy link

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/esbuild@0.18.20/node_modules/esbuild/lib/main.js:1373:27:
  1373 │         let result = await callback({
       ╵                            ^
@userquin
Copy link
Member

how are you using the pwa plugin?

@ShuangDa1018
Copy link

how are you using the pwa plugin?

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

@userquin
Copy link
Member

userquin commented Jan 24, 2024

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

@so2liu
Copy link

so2liu commented Feb 6, 2024

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

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

4 participants