score:0

try this const background = require('../bluecardback.jpg').default;

or where you are using the jpg like

<img src={require('../bluecardback.jpg').default} />

score:2

your config is missing a loader for jpg file.

try adding this

{
  test: /\.(png|jpe?g|gif)$/i,
  loader: 'file-loader'
}  

to your module.rules array in webpack.config.


Related Query

More Query from same tag