You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to bundle "sanity-naive-html-serializer" with some application code, but the currently-pinned version of the "@sanity/schema" dependency produces invalid code that causes the whole thing to fail.
Specifically, the last line of the following code in "@sanity/schema/lib/_exports/index.cjs.mjs":
changing the "@sanity/schema" version to anything other than v3.3.1 in the dependencies, even v3.3.0, seems to produce valid code. I've tried v3.3.0, v3.5.0, and v3.14.4 and received the same results...
The text was updated successfully, but these errors were encountered:
Hi.
I'm attempting to bundle "sanity-naive-html-serializer" with some application code, but the currently-pinned version of the "@sanity/schema" dependency produces invalid code that causes the whole thing to fail.
Specifically, the last line of the following code in "@sanity/schema/lib/_exports/index.cjs.mjs":
default
is a reserved word and as a result is not allowed as a variable declaration name.Note that no other exports from the dependency (e.g. "index.js" or "index.esm.js") have this problem.
How to Reproduce
npm install
default
variableHow to Resolve
npm install
Notes
The text was updated successfully, but these errors were encountered: