title: Module not found: Can't resolve 'bootstrap/dist/css/bootstrap-theme.css' in 'C:\react-form-validation-demo\src'
body: <p>I am newbie in react.js. I have been following instruction in <a href="https://learnetto.com/blog/how-to-do-simple-form-validation-in-reactjs" rel="noreferrer">how-to-do-simple-form-validation-in-reactjs</a> and I can run <a href="http://localhost:3000/" rel="noreferrer">http://localhost:3000/</a></p>
  
  <p>But after adding bootstrap in <code>index.js</code>, I got this error</p>
  
  <blockquote>
  <pre><code>Failed to compile ./src/index.js Module not found: Can't resolve
  'bootstrap/dist/css/bootstrap-theme.css' in
  'C:\react-form-validation-demo\src'
  </code></pre>
  </blockquote>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import './index.css';
  import 'bootstrap/dist/css/bootstrap.css';
  import 'bootstrap/dist/css/bootstrap-theme.css';
  import App from './App';
  import registerServiceWorker from './registerServiceWorker';
  
  ReactDOM.render(&lt;App /&gt;, document.getElementById('root'));
  registerServiceWorker();
  </code></pre>
  
  <p>If I remove these two lines below, it works:</p>
  
  <pre><code>import 'bootstrap/dist/css/bootstrap.css';
  import 'bootstrap/dist/css/bootstrap-theme.css';
  </code></pre>