title: SyntaxError: Invalid or unexpected token in React project
body: <p>I tried running a react app and it gives the following error:</p>
  
  <pre><code>yarn run v1.19.1
  $ react-scripts start
  C:\Users\Rahul\yantra-front\yantraksh-app\node_modules\ajv-errors\index.js:1
  </code></pre>
  
  <p>index.js:</p>
  
  <pre><code>SyntaxError: Invalid or unexpected token
      at Module._compile (internal/modules/cjs/loader.js:892:18)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
      at Module.load (internal/modules/cjs/loader.js:812:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Module.require (internal/modules/cjs/loader.js:849:19)
      at require (internal/modules/cjs/helpers.js:74:18)
      at Object.&lt;anonymous&gt; (C:\Users\Rahul\yantra-front\yantraksh-app\node_modules\schema-utils\src\validateOptions.js:12:16)
      at Module._compile (internal/modules/cjs/loader.js:956:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
      at Module.load (internal/modules/cjs/loader.js:812:32)
  error Command failed with exit code 1.
  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  </code></pre>
  
  <p>I am a beginner in React. How can I solve this?</p>
  
  <p>App.js:</p>
  
  <pre><code>import React, {Component} from 'react';
  
  import {Provider} from 'react-redux';
  import {createStore, applyMiddleware, compose} from 'redux';
  import {BrowserRouter as Router} from "react-router-dom";
  import thunk from 'redux-thunk';
  
  import rootReducer from './reducers';
  import Main from "./main";
  
  import './scss/App.scss';
  import 'react-toastify/dist/ReactToastify.min.css';
  // import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css';
  
  import {ToastContainer} from "react-toastify";
  
  
  export const store = createStore(
      rootReducer,
      compose(
          applyMiddleware(thunk),
          // window.__REDUX_DEVTOOLS_EXTENSION__ &amp;&amp; window.__REDUX_DEVTOOLS_EXTENSION__()
      )
  );
  
  class App extends Component {
      render() {
          return (
              &lt;Provider store={store}&gt;
                  &lt;Router&gt;
                      &lt;Main/&gt;
                  &lt;/Router&gt;
                  &lt;ToastContainer /&gt;
              &lt;/Provider&gt;
          );
      }
  }
  
  export default App;
  </code></pre>
  
  <p>I have updated App.js as well as index.js for easy understanding.</p>
  
  <p>I opened this in pycharm and it says</p>
  
  <blockquote>
    <p>ESLint: SyntaxError: Invalid or unexpected token</p>
  </blockquote>