Open olikami opened 3 years ago
I noticed the same issue, and I was able to fix it with the above solution.
Simply, add image config to nextConfig live below and try to re-run yarn dev
. It works for me.
const nextConfig = {
some: <config>,
images: {
domains: ['example.com'],
},
webpack: (config, options) => {
<webpack configs>
}
}
module.exports = withPlugins([
[bundleAnalyzer],
], nextConfig),
No need to add next-images
plugin.
In my understanding, this is how my
next.config.js
should look:This however break the usage of the
next/Image
tag.If found a fix/hack by changing my module.exports:
This works, but doesn't follow the usage example form the README. This somehow also breaks the
bundleAnalyzer
.Am I missing something here? Happy to provide any additional information.