portfolio: webpack building error

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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (1 by maintainers)

Most upvoted comments

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

run npm i sharp in the root project directory.

Still need some help with this if possible.

Hey @AHzizi, please stop pinging everyone. We just have to wait what @HamishMW will say about this.

Hey @AHzizi, i seem to found my issue. You cannot comment out part of a project for example like this: image or this: image

In other words, if you want to get rid of something, best is to just delete the lines.