Skip to content

Dependency json-schema-deref-sync is breaking next.js dev server #38

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

Closed
freddydumont opened this issue Sep 2, 2020 · 2 comments
Closed
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@freddydumont
Copy link

I'm getting a Module not found: Can't resolve 'fs' when starting the dev server. It appears that json-schema-deref-sync is the culprit and it's a dependency of this library.

I'm not really sure what's going on. Any ideas?

Screen Shot 2020-09-01 at 16 19 36
Screen Shot 2020-09-01 at 20 25 32

@anttiviljami anttiviljami added bug Something isn't working help wanted Extra attention is needed labels Sep 14, 2020
@ccakes
Copy link

ccakes commented Sep 14, 2020

May not be related but I'm getting a number of similar errors trying to use this in a React Native project.

The phone environment doesn't have many native Node modules available like fs or path which as far as I can tell are only used to read OpenAPI spec files from disk. It'd be good to somehow conditionally load those only if opts.definition is a file path.

@jordiup
Copy link

jordiup commented May 6, 2021

Would love to use this project on a react native app but i'm getting a similar error 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants