Moduleparseerror: Module Parse Failed: Unexpected Character '�'
When i import owl.carousel I face the below error, What is it exactly, and what can I do for it? ./node_modules/owl.carousel/dist/assets/owl.carousel.css Module build failed (from
Solution 1:
the strange character you see has to do with the icon's image they have, I'm assuming you have url-loader and file-loader installed but I see that you are using the outputPath
! which I think it's the source of the problem?
Here is a simple configuration that worked for me:
{
test:/\.(png|jpg|gif|svg)$/i,
use: [
{
loader:'url-loader',
options: {
limit:8192,
name:'[name].[hash:7].[ext]'
},
},
],
}
You can copy it or just get rid of the outputPath and see if this solve your issue :)
Post a Comment for "Moduleparseerror: Module Parse Failed: Unexpected Character '�'"