-
Using below code for Switch component doesn't give rounded edges as in documentation but a rectangular (pic below), can you help? (imported directly NOT from core package and tried all versions 1.0.0 to latest)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jeevan-sg It's still likely to be a dependency problem. A component depends on a lot of other packages, so if you opt out of Core and grab an individual package you are opting into managing those dependencies. You can see from the package JSON for this component to work you need all the minimum supported versions of all the other packages it depends on https://github.com/twilio-labs/paste/blob/main/packages/paste-core/components/switch/package.json#L26
Depending on your package manager, you should be getting a bunch of mismatched or unmet peer dependency warnings. Your package manager might not automatically resolve to the correct versions of dependent packages that is needed. As a concrete example, if you install TL;DR is only install Core. Update it often. Don't try to install independent packages unless you can guarantee resolving the needed dependent package versions correctly. |
Beta Was this translation helpful? Give feedback.
Hi @jeevan-sg
It's still likely to be a dependency problem. A component depends on a lot of other packages, so if you opt out of Core and grab an individual package you are opting into managing those dependencies.
You can see from the package JSON for this component to work you need all the minimum supported versions of all the other packages it depends on https://github.com/twilio-labs/paste/blob/main/packages/paste-core/components/switch/package.json#L26