Closed mxomxo77mxo closed 2 years ago
How did you solve this?
This worked for me:
In next.config.js
:
const withImages = require("next-images");
module.exports = withImages({
images: {
disableStaticImages: true,
},
});
And then, in the images I had with src={StaticImage.src}
, I changed them to src={StaticImage}
.
Then, I also had a vscode warning about static images types, which I solved with this.