Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emscripten FS API force disabled #120

Open
ed-alertedh opened this issue Jul 12, 2018 · 0 comments
Open

Emscripten FS API force disabled #120

ed-alertedh opened this issue Jul 12, 2018 · 0 comments

Comments

@ed-alertedh
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant