-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Browser is trying to require fs/promises
#318
Comments
I am getting the same error. Is there a workaround? |
I had to downgrade to 10.0.1 and I don't use the fs resolver |
This is fixed in v11+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The browser is trying to require
fs/promises
in Next.js, failing to compile when using10.1.0
. Rolling back to10.0.1
seems to fix it.In
10.0.1
, this library usesfs
:json-schema-ref-parser/lib/resolvers/file.js
Line 1 in 12cb26a
In
10.1.0
, this library usesfs/promises
:json-schema-ref-parser/lib/resolvers/file.ts
Line 1 in a5b3946
In
package.json
,fs
is marked inbrowser
asfalse
:json-schema-ref-parser/package.json
Lines 46 to 48 in a5b3946
I think
fs/promises
should be included in there instead.The text was updated successfully, but these errors were encountered: