Closed kukoc closed 1 year ago
This "problem" leads to a larger and much more complex discussion about our dependencies as a library of React components. You can join it here: https://github.com/dxc-technology/halstack-react/discussions/1664.
For the moment and to solve the issue, you can update your local version of npm
to the 7th and newer to automatically install peer dependencies of libraries in projects (see their release notes):
npm i -g npm@7.24.2
Creating a new react project with vite and installing halstack CSK is not enough to start importing halstack components. The app compilation would fail until that syled-components package is installed.
Example:
@dxc-technology\halstack-react
+ project dependenciesI would expect styled component to be a Halstack project dependency. Moreover, Using the latest version of styled components, I experienced weird behaviours with containers. Halstack should be using a fixed version.