I\'m currently using Create-React-App for my personal site. I keep getting the following errors every time I run it:
./src/~/react-router-dom/es/index.js
Li
For me, it was a case, because I was violating Eslint import/first rule, by calling an imported function before any other import.
For example, this code had a problem:
import configureStore from './redux/common/configureStore';
const store = configureStore();
// Add polyfill for fetch for older browsers
import 'isomorphic-fetch';
require('es6-promise').polyfill();
because I was calling and assigning const store = configureStore(); before import 'isomorphic-fetch';