Skip to content
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

Trying to work with ParkUI in Next with Panda CSS. #469

Open
ShaynaProductions opened this issue Nov 13, 2024 · 1 comment
Open

Trying to work with ParkUI in Next with Panda CSS. #469

ShaynaProductions opened this issue Nov 13, 2024 · 1 comment

Comments

@ShaynaProductions
Copy link

I'm just trying to get a component running.

Environment:
React/ReactDom: 18.3.1
NextJs: 15.03,
PandaCSS: 0.47.1
@park-ui/panda-preset 0.42.0
@ark-ui/react 4.4.0

npx @park-ui/cli components add button

adds the button and styled/button to the ui directory.

import { ark } from '@ark-ui/react/factory' results in an error: Cannot find a module or its corresponding type declarations.

I can't find the factory in the Ark code. Is there a specific version of Ark I should be importing?

Also, (nit) none of the imports are ending with a semi-colon; I can deal with that, but it is playing havoc with my lint configuration. :)

@riceboyler
Copy link

@ShaynaProductions Try removing the factory from the Ark import. I believe they changed their structure in v4. That has worked for me in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants