0

I am trying to do a chrome extension and I need to get data from the website and write it to a CSV file. For this I import fs but it says cannot use import statements outside a module.

import {fs} from "fs";

That's the code I write but it's not working. How can I add a module to the chrome extension?

Is there any workaround or another way to import?

Christian
  • 4,902
  • 4
  • 24
  • 42

1 Answers1

-1

The file system is not available from browser in any way.

att
  • 617
  • 8
  • 17