• Register
0 votes
76 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
6.9k points

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: '/',        
}

36.1k points
reshown by

Related questions

0 votes
1 answer 96 views
96 views
Problem : Encountered mime type error and looking for its solution because its mime type ('text/html') is not executable, and strict mime type checking is enabled.
asked Nov 11, 2019 peterlaw 6.9k points
1 vote
1 answer 49 views
49 views
Problem : I am getting mime type error because its mime type ('text/plain') is not executable, and strict mime type checking is enabled.
asked Nov 11, 2019 peterlaw 6.9k points
0 votes
1 answer 52 views
52 views
Problem : I have the javascript application and when I try to run it on firefox I am facing the below error on the console: “Because its mime type ('text/html') is not a supported stylesheet mime type” Now I am completely confused because of this error. Kindly somebody let me know how can I resolve my above error?
asked Jan 29 jwilliam 3.9k points
0 votes
2 answers 191 views
191 views
Problem : I have below problem. Chrome continues to return below error “Resource interpreted as stylesheet but transferred with MIME type text/html” My files affected by above error are just a Style, chosen and jquery-gentleselect (other CSS files that are imported in a ... without error). I have already checked the MIME type and text/css is already on a CSS. How to resolve my error?
asked Jan 22 jwilliam 3.9k points
0 votes
1 answer 28 views
28 views
Problem : I just launched my site and don't effectively do anything for a couple of seconds, and afterward the below indicated error message is produced in devTools. In the event that some procedure is done, the error doesn't emerge Service Worker termination by a timeout timer was ... Configuration: OS:- Windows 10 Pro webpack:- 1.14.0 sw-precache-webpack-plugin:- 0.9.1 sw-precache:- 5.0.0
asked Nov 29, 2019 alecxe 7.5k points