question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Cannot find module 'next/dist/next-server/server/node-polyfill-fetch'` for vercel monorepo serverless functions

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Reactions:13
  • Comments:27 (15 by maintainers)

github_iconTop GitHub Comments

23reactions
timneutkenscommented, Sep 4, 2020

We’ve tracked down the issue yesterday and the team is working on a fix 🙏

22reactions
paulogdmcommented, Sep 1, 2020

The team is taking a look as we speak. It should be resolved in a few days.

Our apologies for the inconvenience.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found