Programmers learn & share
0 votes
59 views

Problem :

I am trying to use the reactrouter but i am getting following error
because its mime type ('text/html') is not executable, and strict mime type checking is enabled
by (6.9k points)   | 59 views

1 Answer

0 votes

Solution :

To resolve your issue try changing webpack.config.js add publicPath as shown below

output: {
   path: path.join(__dirname, 'public'),
   filename: 'bundle.js',
   publicPath: '/',        
}

by (36.1k points)  
reshown by
2,204 questions
2,606 answers
59 comments
241 users