You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like this is an issue on the Vercel side due to their Remix-specific build process. I'm currently reaching out to get it resolved. In the meantime I've verified that you should be able to fix this by rolling back to v1.17.0.
As noted above, this issue is currently fixed in the latest version.
Since this issue is caused by a version mismatch between @remix-run/css-bundle and Vercel's custom fork of @remix-run/dev which they only run in CI, I recently merged a PR that will go out in Remix v2 that decouples these two packages to avoid this issue re-emerging in the future: #6982.
What version of Remix are you using?
1.17.1
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
I've included a git repo where I have done the following:
https://github.com/dantman/remix-vercel-css-bundled-modules-bug
npx create-remix@latest
root.tsx
contains...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
(css-bundle is pre-configured in the default template)npm run dev
Expected Behavior
Expected Vercel deployment to have same CSS as seen locally.
Actual Behavior
Bundled CSS and module CSS files that load when run in the dev server do not work when deployed to Vercel.
Local: Run
npm run dev
using https://github.com/dantman/remix-vercel-css-bundled-modules-bugVercel Deployment: https://remix-vercel-css-bundled-modules-bug-git-stock-dantman.vercel.app/
The text was updated successfully, but these errors were encountered: