We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a minimal Remix app using Vite: https://github.com/mnemitz/remix-test-app
This app imports a dummy library I've created here: https://github.com/mnemitz/my-test-lib
The library has the two module entrypoints defined in its package.json
package.json
"exports": { "./module-a": "./dist/module-a/index.js", "./module-b": "./dist/module-b/index.js" },
On the main branch of the test app, the deployment succeeds, and successfully outputs data from both modules: https://remix-test-onfl44vri-matt-nemitzs-projects.vercel.app/
main
However on the edge branch of the app, I've added the following to routes/_index.tsx:
edge
routes/_index.tsx
export const config = { runtime: "edge" };
And the deployment results in an error:
Error: The Edge Function "index" is referencing unsupported modules: -- 17:11:16.015 | - build/server/edge-eyJydW50aW1lIjoiZWRnZSJ9/index.js: my-test-lib/module-a, my-test-lib/module-b
The text was updated successfully, but these errors were encountered:
I think this may also be causing the issue described here: #94
Sorry, something went wrong.
Workaround for anyone hitting this issue is to set the following environment variable: VERCEL_EDGE_FUNCTIONS_ENHANCED_RESOLVE=1
VERCEL_EDGE_FUNCTIONS_ENHANCED_RESOLVE=1
#94 (comment)
No branches or pull requests
Setup
I have a minimal Remix app using Vite: https://github.com/mnemitz/remix-test-app
This app imports a dummy library I've created here: https://github.com/mnemitz/my-test-lib
The library has the two module entrypoints defined in its
package.json
Node deployment works
On the
main
branch of the test app, the deployment succeeds, and successfully outputs data from both modules: https://remix-test-onfl44vri-matt-nemitzs-projects.vercel.app/Edge deployment fails
However on the
edge
branch of the app, I've added the following toroutes/_index.tsx
:And the deployment results in an error:
The text was updated successfully, but these errors were encountered: