Open jacky-ew opened 3 years ago
I am getting the same issue. Can you please help solving it?
I have the same issue, what's the fix for that?!! any help is appreciated. Thanks
@jacky-ew @Dhara-Actonate @marwajomaa
@jacky-ew @Dhara-Actonate @mariusandra
In my case:
Notice that the url source of background image is shown as '[object Module]' This is caused by the url-loader. You should modify your url-loader configuration with options below:
options: {
esModule: false,
},
This will fix the issue in my case. Hope it will be helpful to you.
I have had to install url-loader
https://www.npmjs.com/package/url-loader
This will fix the issue.
i just ran into this after upgrading react-scripts/webpack to ~v5. what works for me is following webpack asset-modules docs
{
test: /\.png/,
type: 'asset/resource'
}
Thanks @radelcom - that fixed my issue as well.
module: { rules: [ { test: /\.png/, type: 'asset/resource', }]}