nbind icon indicating copy to clipboard operation
nbind copied to clipboard

Emscripten FS API force disabled

Open ed-alertedh opened this issue 7 years ago • 0 comments

I was wondering why I was getting the error "ReferenceError: FS is not defined" when my code tried to access the virtual filesystem. After digging into node_modules/nbind/src/nbind.gypi I found "-s", "NO_FILESYSTEM=1" in cflags.

Emscripten will supposedly only include the FS API based on usage , so unless I am missing something I see no reason to have this setting on by default. I wasn't able to find a way to override it so I had to remove the line from nbind.gypi.

Sorry if I'm spamming your project with issues but I figure that these will help others searching for the causes of any errors they encounter.

ed-alertedh avatar Jul 12 '18 02:07 ed-alertedh