• Register
0 votes
233 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 5 3
6,930 points

Please log in or register to answer this question.

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

9 7 4
38,600 points

Related questions

0 votes
1 answer 177 views
177 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
0 votes
1 answer 9 views
9 views
Problem: because its mime type ('text/css') is not executable, and strict mime type checking is enabled.
asked 6 days ago Muneeb Saadii 2.4k points
1 vote
1 answer 88 views
88 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 6 views
6 views
Problem: strict mime type checking is enabled. As you know its mime type ('text/html') is not executable
asked 6 days ago Muneeb Saadii 2.4k points
0 votes
1 answer 146 views
146 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, 2020 jwilliam 3.9k points
0 votes
1 answer 27 views
27 views
Problem: The expected scenario out of the following pieces of code is that when I click on the button feature I will be redirected to the ‘/’ route, i.e the index route. However I get this error message: can not read property push of undefined. Can you help me out? route.js import React from " ... react": "^0.14.7", "react-dom": "^0.14.7", "react-router": "^2.0.1", "history": "^2.0.1",
asked Jan 10 khaled 280 points
0 votes
1 answer 45 views
45 views
I have this problem. Chrome continues to return this error
asked Dec 15, 2020 TeamScript 13.5k points
0 votes
2 answers 406 views
406 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, 2020 jwilliam 3.9k points
0 votes
1 answer 40 views
40 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
0 votes
1 answer 2.2K views
2.2K views
Problem : While I was trying to set up the React within Django project I came across below error ModuleBuildError in Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: C:\Users\jwilliam\Cebula3\cebula_react\assets\js\index.js: Support for the ... : [ "@babel/plugin-proposal-class-properties" ] } But the above error is still existed, How can I fix the error??
asked Jan 20, 2020 jwilliam 3.9k points