-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript error in monorepo after upgrading park ui cli from 0.6.0 to 7.2.0 #375
Comments
@MartinSchmidt123 I'm trying to setup Park UI with Panda CSS on an Nx monorepo aswell. I'm finding your minimum reproductions useful, but I wonder if you could actually publish your configurations with an Nx monorepo instead of a regular PNPM one? 🙇 |
@cschroeter Thank you for taking a look! Unfortunately, you used the main branch which uses Park UI 0.6.0. git clone -b park-ui-cli-7 [email protected]:MartinSchmidt123/park-ui-monorepo.git
cd park-ui-monorepo/
pnpm i
pnpm -F @park-ui-monorepo/app run build results in
I also see the same errors in the CodeSandbox |
@FranciscoKloganB Unfortunately, I never had the chance to use Nx und cannot help here. |
Short Update: I could not find the source of the error. import type { HTMLStyledProps } from 'styled-system/types' works fine. import type { HTMLStyledProps } from '@park-ui-monorepo/styled-system/types' it breaks. I looks like it might work better in bun. First tests seem promising. |
Hmm I have a similar setup and am experiencing the same issue - I also see similar types to this #375 This only seems to happen with the styled-system generated in the monorepo, if I generate the styled-system, in the same package, just for this package, the types are fine. |
I setup a monorepo following
https://panda-css.com/docs/guides/component-library
This means there are separate packages
packages/components/
- shared components,contains Park UI and custom components using Park UI
packages/panda-preset/
- custom Panda Preset,see https://panda-css.com/docs/guides/component-library#ship-a-panda-preset
packages/styled-system/
- Panda as external package,see https://panda-css.com/docs/guides/component-library#use-panda-as-external-package
app/app1/
- example appusing Park UI and custom components based on Park UI.
After updating park ui cli from 0.6.0 to 0.7.2 I receive the following errors for a large number of components (for simplicity I only added
button
andcard
for the reproduction example):I setup a codesandbox repository showing 0.6.0 and 0.7.2:
0.6.0
0.7.2
A simple getting started / all in one park ui app works fine.
So it is probably something with my setup. But since it worked for 0.6.0 I hope that we might be able to find the changes that causes these errors and maybe even document them.
Thank you for all the great work on (P)Ark UI and Panda!
The text was updated successfully, but these errors were encountered: