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

Latest @rjsf/validator-ajv8 (with precompiled validator) breaks web import (it imports 'fs') #3668

Closed
3 of 4 tasks
aularon opened this issue May 13, 2023 · 7 comments · Fixed by #3674
Closed
3 of 4 tasks
Labels

Comments

@aularon
Copy link
Contributor

aularon commented May 13, 2023

Prerequisites

What theme are you using?

validator-ajv8

Version

5.7.0

Current Behavior

Importing @rjsf/validator-ajv8@5.7.0 causes client-side to break:

.../node_modules/@rjsf/validator-ajv8/dist/validator-ajv8.esm.js:6:0
Module not found: Can't resolve 'fs'

It seems that some nodejs-specific javascript code paths should be separated from default import!

Expected Behavior

Downgrading to 5.6.2 fixes this, works like expected! No error.

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

@aularon aularon added bug needs triage Initial label given, to be assigned correct labels and assigned labels May 13, 2023
@anthonycaron
Copy link
Contributor

I'm experiencing the same issue.

@g-pex-aerian
Copy link

+1 Same issue

@gastonmorixe
Copy link

I'm experiencing the same

@kosamtech
Copy link

yeah kinda experiencing the same issue

@gabriela-barbosa
Copy link

Same here

@heath-freenome heath-freenome removed the needs triage Initial label given, to be assigned correct labels and assigned label May 15, 2023
@jeudryWepsys
Copy link

any answer???

@heath-freenome
Copy link
Member

It was fixed on May 15th via #3674

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