N
N
Nikita Shchypylov2018-09-15 12:40:47
Node.js
Nikita Shchypylov, 2018-09-15 12:40:47

Why am I getting "strict MIME type checking is enabled." at re-route of the user?

Hello!
I created this route:

<Route path="/dictionary/:lang" component={Dictionary} />

I go to it like this:
<Link to={`dictionary/${item.toLowerCase()}`} className={[classes.flex, classes.link].join(" ")}>

item.toLowerCase() - a regular string like "russian"
When I try to reroute here, I get :
5b9cd373121d2898646523.png
and the project crashes.
Other routes work.
This is my first time using a route with the :lang parameter, maybe because of this?
Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Spirin, 2018-09-15
@Nikulio

It is possible that the public path is not specified in the webpack config:

module.exports = {
    ...
    output: {
        publicPath: '/'
    }
}

The right way:
to={`/dictionary/${item.toLowerCase()}`}

R
Roman Scriabin, 2015-04-03
@TheExplay

if ($(".select_menu").val() == "23"){
you have an assignment sign, not an equality test

$(function() {    
    if ($(".select_menu").val() == "23"){
        $('.form_input.hidden').addClass('active');
    }
});

V
Vladlen Grachev, 2015-04-03
@gwer

Need an example. For now, offhand, I can assume that the DIV is initially hidden. It is possible that the class is added, but in addition to this, the .hidden class must also be removed for it to be displayed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question