-
Not sure if anyone has asked the same question, when running local server, sees the following: warn - ./node_modules/@twilio-paste/style-props/dist/index.es.js |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
Hi @ycaoT, Sounds like the warning is complaining about named exports ( Please do report back if you discover anything. |
Beta Was this translation helpful? Give feedback.
-
@TheSisb This is the line where giving the warning, not from my codes. import{props as pe}from"@twilio-paste/design-tokens/dist/tokens.raw.json" |
Beta Was this translation helpful? Give feedback.
-
@ycaoT we're really interested to hear what you're using design tokens directly for, would you might sharing your use case with us please? As for the import, as it's JSON you'll likely need to import it as import * as pe from "@twilio-paste/design-tokens/dist/tokens.raw.json" |
Beta Was this translation helpful? Give feedback.
-
@SiTaggart, that is not from my codes. I am wondering somewhere from Paste is doing that, however I don't have the source code of Paste in my local. |
Beta Was this translation helpful? Give feedback.
-
I see now. Can you give more details? Is it a typescript warning? A eslint warning? A browser console warning? Whats the setup? |
Beta Was this translation helpful? Give feedback.
-
Marking this as answered due to inactivity. |
Beta Was this translation helpful? Give feedback.
Marking this as answered due to inactivity.