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

Vite fires an OptimizeDeps after server start #2036

Open
archiewood opened this issue May 28, 2024 · 0 comments
Open

Vite fires an OptimizeDeps after server start #2036

archiewood opened this issue May 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working customer request An Evidence customer has requested this

Comments

@archiewood
Copy link
Member

Steps To Reproduce

CleanShot 2024-05-28 at 18 22 12

~/Projects/template$ npm exec evidence dev -- --open /
Forced re-optimization of dependencies
Port 3000 is in use, trying another one...

  VITE v5.2.10  ready in 1145 ms

  ➜  Local:   http://localhost:3001/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
6:22:22 PM [vite] ✨ new dependencies optimized: @evidence-dev/sdk/usql, blueimp-md5
6:22:22 PM [vite] ✨ optimized dependencies changed. reloading

Environment

  • Node version (node -v):
  • npm version (npm -v):
  • OS:
  • Browser:
  • Database:

Expected Behavior

No dependencies should need to be optimized on server start

Actual Behaviour

Vite does some stuff and causes the server to take ages to start. It also seems to have downstream impacts on some customer projects

Workarounds

I suspect we will need to adjust the evidence/scripts/build-template.js file to take into account these dependencies

@archiewood archiewood added bug Something isn't working to-review Evidence team to review customer request An Evidence customer has requested this and removed to-review Evidence team to review labels May 28, 2024
@ItsMeBrianD ItsMeBrianD self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working customer request An Evidence customer has requested this
Projects
None yet
Development

No branches or pull requests

2 participants