You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.
I'm getting a Warning: [react-router] You cannot change <Router routes>; it will be ignored warning whenever I make a change in JS or CSS. Are you aware of this issue?
We'll try to fix it in the meanwhile, but let me know if there's a quick/easy fix for this.
Cheers!
The text was updated successfully, but these errors were encountered:
I think the warning is harmless and it comes from Hot Reloading. There's a lot more on it here, including some workarounds. I've tried to wrestle with it before and abandoned the effort.
We're just filtering the error message out in the project I'm working on, the error doesn't seem impact the functionality of the app at all.
In the entry file of the app:
if (module.hot) {
/**
* Warning from React Router, caused by react-hot-loader.
* The warning can be safely ignored, so filter it from the console.
* Otherwise you'll see it every time something changes.
* See https://github.com/gaearon/react-hot-loader/issues/298
*/
const orgError = console.error;
console.error = (...args) => {
if (args && args[0] && typeof args[0] === 'string' &&
args[0].indexOf('You cannot change <Router routes>;') > -1) {
// React route changed
} else {
// Log the error as normal
orgError.apply(console, args);
}
};
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello again :)
I'm getting a
Warning: [react-router] You cannot change <Router routes>; it will be ignored
warning whenever I make a change in JS or CSS. Are you aware of this issue?We'll try to fix it in the meanwhile, but let me know if there's a quick/easy fix for this.
Cheers!
The text was updated successfully, but these errors were encountered: