-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Install issues with Bun and Vite 5 / Vitest 1 in templates #795
Comments
Thanks @birkskyum. I've reached out to the Nx team already, and they will work on support for Vitest 1.0 soon. In the meantime, newly generated apps with .npmrc legacy-peer-deps=true Angular v17.1 should bump Vite up to 5.x also The other option is to use |
@brandonroberts , gotcha, thanks. I hit this because I tried to |
Oh, interesting. I think if you pin Vitest 1.0 is mainly needed if you're using component harnesses |
Changing the package.json in the angular 17 template sure does fix that specific issues. |
Ok cool. I think we'll update the current template to use those versions to decrease the |
The packages are aligned in the latest release of npm create analog@latest analog-bun-install
cd analog-bun-install
bun install
bun run dev |
seems like this change is in the nx 17.2.5, so it's technically possible to bump the deps now. |
True, but the Angular CLI is still on 4.5.1 until 17.2 gets released which will cause peer dependency issues. |
Running bun run dev with dev is vite dev isn't running in Bun runtime. @brandonroberts you need to use bun run --bun dev to use bun for the runtime otherwise it uses node. |
Yes, I know. There were still some compatibility issues running with the bun runtime, but its been a while since I checked it |
Fair enough sorry I was.following the thread and I thought you was saying bun working. Been considering pulling jn angular vite plugins for a pure bun solution |
Created a working solution with Bun runtime and the Vite CLI |
Which scope/s are relevant/related to the feature request?
create-analog
Information
When initiating a project using the templates (at least angular 17), I can't install the package.json because of incompatible package versions with vite/vitest/ and nx/vite.
There is a related upstream issue open here:
Describe any alternatives/workarounds you're currently using
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: