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)

Most upvoted comments

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.2 which 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?url imports for links function

@danestves @robertjpayne Can you please confirm that v2.7.2 fixes your issue?

@Lenghak Because if you remove the ?url the 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.