title: Export function not working in JavaScript
body: <p>I have been working on a shopping list application in React but have ran into a problem with exporting a regular JavaScript function from a file called webscrape.js into my react App.js I have tried multiple different ways of exporting but I keep getting this error.
  Thanks to any help in advance.</p>
  <blockquote>
  <p>Module not found: Can't resolve 'readline' in
  'C:\Users\USERNAME\Desktop\Programming-Projects\Counter
  App\counter-app\node_modules\puppeteer\lib\cjs\puppeteer\node'</p>
  </blockquote>
  <p>This is the end of my webscrape file where I export a test function</p>
  <pre><code>function testExport(){
    console.log(&quot;Test Export&quot;);
  }
  
  function testExport2(){
    console.log(&quot;Test Export 2&quot;);
  }
  export {testExport, testExport2}
  </code></pre>
  <p>This is the start of my App.js where I import and try using the function</p>
  <pre><code>import NavBar from &quot;./components/navbar&quot;;
  import PriceBar from &quot;./components/pricebar&quot;;
  import &quot;./App.css&quot;;
  import Counters from &quot;./components/counters&quot;;
  import fs from 'fs';
  import data from &quot;./shoppingData.json&quot;;
  import {testExport, testExport2} from &quot;./webscrape.js&quot;;
  
  //test export
  testExport();
  </code></pre>