`Cannot find module 'next/dist/next-server/server/node-polyfill-fetch'` for vercel monorepo serverless functions
See original GitHub issueBug report
Hi, first of all love your work!
I’m migrating to use the NEW monorepo support for vercel,
and although the functions succeed to deploy, I get the following error when invoking it.
Describe the bug
Cannot find module 'next/dist/next-server/server/node-polyfill-fetch'
To Reproduce
Reproduction coming …
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
- OS: [e.g. macOS, Windows]
- Browser (if applies) [e.g. chrome, safari]
- Version of Next.js: [e.g. 6.0.2]
- Version of Node.js: [e.g. 10.10.0]
Additional context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:13
- Comments:27 (15 by maintainers)
Top Results From Across the Web
How to fix Next.js Vercel deployment module not found error
I had to edit my package.json to use the next binary that ships in the node_modules/next directory:
Read more >Monorepos – Vercel Docs
Monorepos allow you to manage multiple projects in a single directory. They are a great way to organize your projects and make them...
Read more >@nuxtjs/vercel-builder - npm
This Vercel builder takes a Nuxt application defined by a nuxt.config.js (or .ts ) entrypoint and deploys it as a serverless function in...
Read more >Serverless deployments via Vercel using Node.js
Running serverless functions through Vercel CLI eliminates backend work by deploying websites instantly and scaling them automatically.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve tracked down the issue yesterday and the team is working on a fix 🙏
The team is taking a look as we speak. It should be resolved in a few days.
Our apologies for the inconvenience.