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.

webpack building error

See original GitHub issue

Hey, would you know why this error is appearing for me? I cannot seem to make it build correctly on localhost. dev works fine.

Commands I’m using: npm run build

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
EXKSMEcommented, Jul 29, 2022

I met this prob today, my solution is update the dependencies as shown both package.json and package-lock.json file image then run npm i then can build

1reaction
thomasjvucommented, Jul 26, 2022

run npm i sharp in the root project directory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack build error - node.js - Stack Overflow
Strange workaround: I zipped my entire node_modules map and transfered it to PC_A and placed it correctly. Now webpack builds just fine. So...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
Webpack client does not throw error code when build failed
Hi,. I'd like to know when a build failed using the webpack client (because of a module not found for example). Right now,...
Read more >
Webpack build error - Questions - Babylon.js Forum
I started seeing this npm build error i 「wds」: Project is running at http://172.24.144.1/ i 「wds」: webpack output is served from /client i ......
Read more >
This will make you more efficient at debugging Webpack ...
In this article we'll build a very primitive plugin for Webpack and then I'll show you how to find out if this plugin...
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