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

Bug in production when use package locally #2249

Closed
3 tasks done
iqingting opened this issue Feb 25, 2021 · 1 comment
Closed
3 tasks done

Bug in production when use package locally #2249

iqingting opened this issue Feb 25, 2021 · 1 comment
Labels
cannot reproduce The bug cannot be reproduced

Comments

@iqingting
Copy link

  • Read the docs.
  • Use Vite >=2.0. (1.x is no longer supported)
  • If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.

Describe the bug

It work's fine in development when i installing the local package that also depends vue, but there is a bug in the build and preview production page.

Reproduction

  1. Open https://ihv57.sse.codesandbox.io/ and see the console.
  2. And the source code is here https://codesandbox.io/s/dazzling-grass-ihv57

System Info

  • vite version: 2.0.1
  • Operating System:
  • Node version: v14.15.1
  • Package manager (npm/yarn/pnpm) and version: yarn

Logs (Optional if provided reproduction)

  1. Uncaught TypeError: Cannot read property 'refs' of null
@yyx990803 yyx990803 added cannot reproduce The bug cannot be reproduced and removed pending triage labels Feb 26, 2021
@yyx990803
Copy link
Member

Can't reproduce. I believe this has to do with multiple vue being resolved for build due to how your packages and their dependencies are structured (your local package probably has its own copy of vue).

Try resolve: { dedupe: ['vue'] }.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cannot reproduce The bug cannot be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants