Home > Enterprise >  FS/Require is not defined
FS/Require is not defined

Time:10-18

Question

  • How to fix this?

I need a way to write to index.csv but I can't because neither fs or require work.

Here's My Codes

The Error

What's installed via npm install <package>?

express

fs-js / fs

requirejs / require

pug

path and router

Assumptions

  • Probably directory not found

.root/node_modules/fs

CodePudding user response:

https://bobbyhadz.com/blog/javascript-referenceerror-require-is-not-defined#:~:text=js .-,To solve the "ReferenceError require is not defined" error,,js extension.

checkout this , you would receive a solution. Regards

  • Related