Skip to content

Direct exports from styled-system in @twilio-paste/styling-library? #601

Answered by SiTaggart
hharnisc asked this question in General
Discussion options

You must be logged in to vote

Hmmm I think this might not actually be a problem with the exports as much as where the types are coming from. We have a dev dependency on @types/styled-system, but we don't include it as a dependency for the package.

On a simple repro of your exact example, just by adding @types/styled-system as an installed dependency made the errors of missing exports disappear. https://codesandbox.io/s/styling-library-exports-test-8gtph?file=/src/index.tsx

For now I think you can just add it as a dep to your project and hopefully it'll remove the need for the ts-ignore's. We'll probably need to add the types package as a dep to the styling-library though in the future. I'll create a ticket for it.

Let…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hharnisc
Comment options

Answer selected by hharnisc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants