remix: Error: [remix] dest already exists.
Reproduction
Using this template ๐ https://github.com/kiliman/remix-vite-template that doesnโt differ very much from the official one ๐ https://github.com/remix-run/remix/tree/main/templates/vite-express
It gives the following error when running remix vite:build:
This only happens to me after upgrading to 2.7.0 of Remix
System Info
System:
OS: macOS 14.3.1
CPU: (8) arm64 Apple M1 Pro
Memory: 104.86 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
bun: 1.0.28 - /opt/homebrew/bin/bun
Browsers:
Chrome: 121.0.6167.184
Safari: 17.3.1
Used Package Manager
npm
Expected Behavior
Build normally like the previous version (2.6.0)
Actual Behavior
Breaking the builds
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 5
- Comments: 21 (9 by maintainers)
This is fixed by https://github.com/remix-run/remix/pull/8829, itโll be out in the next patch release.
Thanks for raising this. Iโve found the problem, I should have a fix ready soon.
@robertjpayne Thanks for sharing that repro. Iโve just confirmed that the PR fixing this issue also fixes your issue: https://github.com/remix-run/remix/pull/8829
๐ค Hello there,
We just published version
2.7.2which involves this issue. If youโd like to take it for a test run please try it out and let us know what you think!Thanks!
Can confirm that build is success if I donโt use
css?urlimports forlinksfunction@danestves @robertjpayne Can you please confirm that v2.7.2 fixes your issue?
@Lenghak Because if you remove the
?urlthe error goes away ๐. It takes a bit of trial and error but basically Iโll have a hypothesis for what might be causing the issue. If it isnโt the issue, Iโll keep trying different possibilities trying to isolate the problem further.