Copy link to clipboard
Copied
Hi There,
This is my folder setup:
I'm trying to export a .json file from the index.js in the client folder. I'm doing this with a node module "file-system": "^2.2.2".
fs.writeFile("output.json", data);
I get the following error message:
I gave all the folders of this project read/write permission. I can't seem to find a solution. How do i avoid this error? Any ideas?
Ok so i was supposed to give a valid path to a folder in order to write the file. Didn't check that well enough.
Copy link to clipboard
Copied
Ok so i was supposed to give a valid path to a folder in order to write the file. Didn't check that well enough.