-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Unable to import types in v6 #9583
Comments
Ahh, I see. Thanks for reporting. To explain, since we added explicit How do you suggest we expose the types? We could expose specific types but I would still want to mark them as not stable. |
I think it would be sufficient to add the https://github.com/vega/vega-lite/blob/main/src/spec/index.ts file to the exports in package.json. https://github.com/vega/vega-lite/blob/main/package.json#L27 |
Okay. Do you have an idea how we can mark it as exported yet unstable? |
Fixed in #9584. I need a careful review of the changes I made there. |
|
Bug Description
Pre v6, I was able to import types like
NonNormalizedSpec
from the spec file. Since v6 (and the switch to ESM), I'm no longer able to reach these types. It would be great if thespec
file could get exposed as a module again so that I can migrate to v6.The text was updated successfully, but these errors were encountered: