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.

Next build does not work on macOS

See original GitHub issue

What version of Next.js are you using?

11.1.3-canary.15

What version of Node.js are you using?

12,14,16

What browser are you using?

Brave

What operating system are you using?

macOs

How are you deploying your application?

Vercel

Describe the Bug

When every i try to build or try to run my project it breaks immediately giving me this error

`ode:internal/modules/cjs/loader:940 const err = new Error(message); ^

Error: Cannot find module ‘./blocks/images’ Require stack:`

and when i see the path it tells that has the missing thing it does miss it it is in node_modules/next/dist/build/webpack/config/

CleanShot 2021-09-13 at 09 30 14@2x CleanShot 2021-09-13 at 09 30 31@2x

P.S there is an important thing the project was okay in 11.1.3-canary.7 nothing was wrong if that helps

Expected Behavior

my project should run normally

To Reproduce

update to the latest beta and try to build or run the project

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mzaiencommented, Oct 4, 2021

@maxsteenbergen can you delete all .lock files and node_mouldes then try running it with npm only

0reactions
balazsorban44commented, Jan 27, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NextJS not running on MacOS even after installing modules
It seems like npm is not detecting the node_modules i have installed. Not sure if this is a mac or a zsh issue....
Read more >
Site only builds a 404 page on Mac but works fine on Windows
I first ran npm run dev and loaded up localhost:3000 to find the Next.js generic 404 page. All other pages did the same....
Read more >
Build and Deploy a Full Stack App From scratch - YouTube
In this Next.js course for beginners, you will learn how to build a full-stack App from scratch. ... Your browser can't play this...
Read more >
Advanced Features: Debugging - Next.js
Next, open Chrome's Developer Tools ( Ctrl + Shift + J on Windows/Linux, ⌥ + ⌘ + I on macOS), then go to...
Read more >
How to get next.js and vercel to work on M1 mac
I'm building my blog website using next.js and vercel. Today, I was working on an M1 MacBook Air and I got the following...
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