Open Jarrku opened 8 months ago
Can you try to narrow it down, or share a deployment URL with the issue? Without a reproduction, it's hard for me to say the cause.
If I were to guess, I think you still have a remix.config.js
file in your code, which you should delete. We merged a change that should make the Vite mode detection better, but it's still in the process of being rolled out.
There is no remix.config.js
present.
The deployment URL is: https://web-djdxk6xr2-pexip-engage.vercel.app
It's deployed from a pnpm monorepo, and I did manage to get another smaller remix app building using the vite builder on vercel. However we're blocked on custom server file support there.
I can look into deleting routes on a test branch to try and narrow it down
Can you share the tree of your routes
directory?
We're using the flat-routes package:
If you could give me a reproduction repo then I can take a closer look.
I'll try to trim down the project to pinpoint the issue and create a reproduction. I'm not sure if I'll be able to do this this week, but I'll keep you updated, thank you for the help already!
Do you prefer to close this issue for now and I recreate an issue if I can find out more?
Edit: Narrowed it down to one file(layout route) that triggers the issue. Ill try to setup a repro with that structure
Made a reproduction here, started from the vercel example: https://github.com/Jarrku/vercel-remix-layout-bug/tree/main
If you run it locally, you can see it working using the links in the root page.
Thank you for the repro. I can reproduce the issue with this. We are investigating
FWIW I've adjusted our routes from:
- $id.subpath._index
- $id.subpath_.hello
- $id.subpath_
- $id
to:
- $id.subpath._index
- $id.subpath._detail.hello
- $id.subpath._detail
- $id
Which leads to the same behaviour & avoids the build error. So we've been able to work around this issue.
Encountering this as well, any findings?
Hey,
I've been trying to migrate our remix app to use vite, but it seems to fail when deploying to vercel with a symlink error.
This is the only error log im getting when deploying. Im unsure how I can enable additional logging, or what is causing this error. The application runs/builds fine with the current compiler.
I've tried with
"@vercel/remix": "2.8.1"
and"@vercel/remix": "2.8.1-patch.2"
The project is fairly large so hard to setup a reproduction as I have no clue what might be causing this.