cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.75k stars 75 forks source link

Installing Button component requires you to also install Spinner #410

Open wagnerpaz opened 3 months ago

wagnerpaz commented 3 months ago
npx @park-ui/cli components add button
 ⨯ ./components/ui/button.tsx:3:1
Module not found: Can't resolve './spinner'
  1 | import { forwardRef } from 'react'
  2 | import { Center, styled } from 'styled-system/jsx'
> 3 | import { Spinner } from './spinner'
    | ^
  4 | import { Button as StyledButton, type ButtonProps as StyledButtonProps } from './styled/button'
  5 |
  6 | interface ButtonLoadingProps {

https://nextjs.org/docs/messages/module-not-found

It works if I run this after:

npx @park-ui/cli components add spinner
matthewtesimale commented 3 months ago

This is more so a documentation issue that will be fixed! However, the code itself isn't experiencing an issue. I anticipate they will implement this into the cli to only have to run one command as well in the future. Thoughts @cschroeter?