Loader should ignore non-files in modules directory
levynir opened this issue Β· comments
Nir Levy commented
Non-files in the modules (directories esp.) cause the system to crash with the following error message:
[forest] π³π³π³ Cannot read your model in the file DIRNAME for the following reason:
Error: Cannot find module '/PATH/TO/MODELS/DIRNAME'
at Function.Module._resolveFilename (module.js:489:15)
at Function.Module._load (module.js:439:25)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at /PATH/TO/node_modules/forest-express/index.js:28:11
Steps to reproduce:
create a sub-directory in your modules directory and try to re-load
Arnaud Besnier commented
Thank you for the report and the fix!
The fix will be released today.
π²π²π²