Skip to content
Discussion options

You must be logged in to vote

@segunadebayo After almost a year, I (Claude) finally found the issue. In the consuming app, in panda.config.ts I included the component library like this:

include: ['./src/**/*.{ts,tsx}', '@my-lib/design-system/dist/panda.buildinfo.json']

But the issue with this is that Panda uses fast-glob under the hood which doesn't do actual module resolution, but file system resolution and that's why you need to pass relative path, like this:

include: ['./src/**/*.{ts,tsx}', './node_modules/@my-lib/design-system/dist/panda.buildinfo.json']

Which is kinda strange because in the presets field above, you can reference a module but not in here 🤷

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by doksara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants