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
Cannot find module '/var/task/node_modules/@mjackson/node-fetch-server/dist/node-fetch-server.cjs'
Did you forget to add it to "dependencies" in `package.json`?
Node.js process exited with exit status: 1. The logs above can help with debugging the issue.
However, this error occurs even though I haven’t changed anything related to dependencies. The latest code runs normally in my local machine.
To verify, I reproduced the issue using the official React Router boilerplate template and can see the same “cannot find module” error in the logs.
Code: React Router Boilerplate
Deployed: https://test-rr-one.vercel.app/
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
My React Router project recently deploys successfully on Vercel, but the deployed site shows a 500 error when accessed:
The server logs display this message:
However, this error occurs even though I haven’t changed anything related to dependencies. The latest code runs normally in my local machine.
To verify, I reproduced the issue using the official React Router boilerplate template and can see the same “cannot find module” error in the logs.
Code: React Router Boilerplate
Deployed: https://test-rr-one.vercel.app/
Beta Was this translation helpful? Give feedback.
All reactions