Closed haseebnqureshi closed 7 years ago
This one was CRAZY. The fs module runs statically, and so if you still need to read the directory contents of dynamically set paths, you require a commonjs module dynamically, and then have that module read its dir contents using fs.
Normally they come standard with nodejs, but this error makes me think otherwise. This came from our deployment to AWS: