vercel / next.js

The React Framework
https://nextjs.org
MIT License
126.53k stars 26.92k forks source link

Images don't load when using swcMinify #31664

Closed elie222 closed 2 years ago

elie222 commented 2 years ago

What version of Next.js are you using?

12.0.4

What version of Node.js are you using?

v14.15.3

What browser are you using?

Chrome

What operating system are you using?

macOS

How are you deploying your application?

Vercel

Describe the Bug

Png images do not load when setting swcMinify: true. Svgs do load. I am using next/image to load the images.

Expected Behavior

Images should load.

To Reproduce

In next.config.js set:

swcMinify: true,

Other items we're using that could be causing issues: Tailwind, next-superjson package. But when we have swcMinify: false all works as expected.

timneutkens commented 2 years ago

Please provide a repository so that this can be investigated. Thanks!

github-actions[bot] commented 2 years ago

This issue has been automatically closed after 30 days of inactivity with no reproduction. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.

balazsorban44 commented 2 years ago

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.