Skip to content
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

Won't build on Vercel: Cannot find module '/vercel/path0/node_modules/@remix-run/dev/dist/config.js' #2

Open
arcataroger opened this issue Oct 31, 2023 · 0 comments

Comments

@arcataroger
Copy link
Member

arcataroger commented Oct 31, 2023

Trying to build this on Vercel results in the build error:

Error: Cannot find module '/vercel/path0/node_modules/@remix-run/dev/dist/config.js' imported from /var/task/node_modules/@vercel/remix-builder/dist/index.js

image

I don't think I'm experienced enough with Remix to debug this effectively, but some version upgrades seem to fix this issue (see #3)

Full failing build log:

[15:23:49.741] Running build in Washington, D.C., USA (East) – iad1 (Hive)
[15:23:49.848] Cloning github.com/arcataroger/forum-4519 (Branch: main, Commit: 4367f8e)
[15:23:50.172] Previous build cache not available
[15:23:50.335] Cloning completed: 486.45ms
[15:23:50.567] Running "vercel build"
[15:23:51.111] Vercel CLI 32.4.1
[15:23:51.819] Warning: Detected "engines": { "node": ">=14" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[15:23:51.828] Installing dependencies...
[15:24:08.924] 
[15:24:08.925] > postinstall
[15:24:08.925] > remix setup node
[15:24:08.925] 
[15:24:09.173] Successfully setup Remix for node.
[15:24:09.186] 
[15:24:09.187] added 473 packages in 17s
[15:24:09.187] 
[15:24:09.187] 143 packages are looking for funding
[15:24:09.187]   run `npm fund` for details
[15:24:09.209] Error: Cannot find module '/vercel/path0/node_modules/@remix-run/dev/dist/config.js' imported from /var/task/node_modules/@vercel/remix-builder/dist/index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant