title: How can I solve this error? "export 'default' (imported as 'App') was not found in './App' (possible exports: App)" (im using react)
body: <p>heyyy. i wanted to try out react with <a href="https://www.youtube.com/watch?v=LMagNcngvcU&amp;list=RDCMUCmXmlB4-HJytD7wek0Uo97A&amp;start_radio=1&amp;t=749s" rel="nofollow noreferrer">this</a> tutorial.</p>
  <p>at the moment I have only made the data structure. unfortunately i always get an error when compiling.</p>
  <hr />
  <p><strong>Error</strong></p>
  <pre><code>Compile failed.
  
  Attempted import error: './App' does not contain default export (imported as 'App').
  Assets by state 1.6 MiB [cached] 2 assets
  Assets by path . 930 bytes
    asset index.html 658 bytes [emitted]
    asset-manifest.json 272 bytes [emitted]
  cached modules 1.39 MiB (javascript) 1 bytes (asset) 28.1 KiB (runtime) [cached] 144 modules
  ./src/index.js 1.34 KiB [built]
  
  ERROR in ./src/index.js 8:38-41
  export 'default' (imported as 'App') was not found in './App' (possible exports: App)
  
  webpack 5.66.0 compiles with 1 error in 63 ms
  </code></pre>
  <hr />
  <p><strong>App.js</strong></p>
  <pre><code>import React from 'react'
  
  import { Footer, Blog, Possibility, Features, WhatWELOVEU, Header } from './containers';
  import { CTA, Brand, Navbar } from './components';
  
  export const App = () =&gt; {
      return (
          &lt;div className='App'&gt;
              &lt;div className='gradient_bg'&gt;
                  &lt;Navbar /&gt;
                  &lt;Header /&gt;
              &lt;/div&gt;
              &lt;Brand /&gt;
              &lt;WhatWELOVEU /&gt;
              &lt;Features /&gt;
              &lt;Possibility /&gt;
              &lt;CTA /&gt;
              &lt;Blog /&gt;
              &lt;Footer /&gt;
  
              
          &lt;/div&gt;
      )
  }
  </code></pre>
  <hr />
  <p><strong>index.js</strong></p>
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  
  import App from './App';
  
  ReactDOM.render(&lt;App /&gt;, document.getElementById('root'));
  </code></pre>
  <hr />
  <p>these two files are in the &quot;src&quot; folder. in the &quot;src&quot; folder there are also the components and containers. everything is described in the tutorial and the data structure is the same.
  <a href="https://i.stack.imgur.com/BjnpN.png" rel="nofollow noreferrer">enter image description here</a></p>
  <hr />
  <p>In the folder components and container are .jsx and css files. all css FIles nid empty, in the jsx files you can find the same code always adapted to the name of the file.</p>
  <p>p.ex.
  <strong>Article.jsx</strong></p>
  <pre><code>import React from 'react'
  import './article.css';
  
  const Article = () =&gt; {
      return (
          &lt;div&gt;
              Article
          &lt;/div&gt;
      )
  }
  
  export default Article
  </code></pre>
  <p><a href="https://i.stack.imgur.com/3lZw1.png" rel="nofollow noreferrer">enter image description here</a></p>
  <hr />
  <p>In containers and components are also index files.</p>
  <p><strong>components/index.js</strong></p>
  <pre><code>export { default as Article } from './article/Article';
  export { default as Brand } from './brand/Brand';
  export { default as CTA } from './cta/CTA';
  export { default as Feature } from './feature/Feature';
  export { default as Navbar } from './navbar/Navbar';
  </code></pre>
  <p><strong>containers/index.js</strong></p>
  <pre><code>export { default as Blog } from './blog/Blog';
  export { default as Features } from './features/Features';
  export { default as Footer } from './footer/Footer';
  export { default as Header } from './header/Header';
  export { default as Possibility } from './possibility/Possibility';
  export { default as WhatWELOVEU } from './whatWELOVEU/whatWELOVEU';
  </code></pre>