Closed RabeeAbuBaker closed 1 month ago
hello, I think you are looking for this issue in our dependency json-schema-library
. I reccomend subscribing for the fix. this is the codemirror-json-schema
repo so we don't have control over that, but we might end up contributing the fix. I have full time and oss contract obligations in other repos but I hope to get to it in the coming months!
https://github.com/sagold/json-schema-library/issues/51
to note for anyone using next.js, we resolved this using transpileModules
which is now built-in to next 13.
afaik, there is not a known workaround for vite/esbuild however, this requires adding full esm support to json-schema-library
hello, I think you are looking for this issue in our dependency
json-schema-library
. I reccomend subscribing for the fix. this is thecodemirror-json-schema
repo so we don't have control over that, but we might end up contributing the fix. I have full time and oss contract obligations in other repos but I hope to get to it in the coming months!to note for anyone using next.js, we resolved this using
transpileModules
which is now built-in to next 13.afaik, there is not a known workaround for vite/esbuild however, this requires adding full esm support to
json-schema-library
Thanks a lot! I appreciate your work and efforts There's no workaround for esbuild AFAIK unfortunately, but there's on for vite (fix)
our demo build is with vite actually, i forgot how we got around it?? i wonder if we switch back from moduleResolution: bundler to node if that would fix it
I think this can be closed now?
yes i think it is resolved, please let us know if the latest releases do not resolve this and we can re-open
Unfortunately if you're using native ESM, or esbuild, this doesn't work because the underlying json-schema-library doesn't support ESM: https://github.com/sagold/json-schema-library/issues/59
Trying to use with ES modules, I get this error
Using the following:
tsconfig
compilerOptions
: