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

Cant run in web app #18

Open
ConnectedReasoning opened this issue Aug 21, 2019 · 1 comment
Open

Cant run in web app #18

ConnectedReasoning opened this issue Aug 21, 2019 · 1 comment

Comments

@ConnectedReasoning
Copy link

I tried to run this inside a javascript function on the browser. I'm running react. during the build process I encountered the following error
ERROR in ./node_modules/graceful-fs/graceful-fs.js
Module not found: Error: Can't resolve 'fs' in '(my path)/node_modules/graceful-fs

Is JSONC only meant to be run on the server and not in a web app on the browser?

@WORMSS
Copy link

WORMSS commented Feb 21, 2023

Yep, I encountered this..

I went into the implementation and seen you are basically doing

require("parse-json")(require("strip-json-comments")({ whitespace: false }));

So going to use that for now..

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

2 participants