astahmer / pandabox

a toolbox for Panda CSS
https://pandabox.vercel.app/
48 stars 3 forks source link

Macro converts unrelated components #40

Closed nucleartux closed 6 months ago

nucleartux commented 6 months ago

I made a small reproduction here: https://github.com/astahmer/pandabox/compare/main...nucleartux:pandabox:repro?expand=1

image

From the code, you can see that I don't import Stack from anywhere. However, for some reason, the Panda macro converts Stack to its own component (first div in the screenshot). If I rename Stack to Stack2, everything works as expected (second div in the screenshot). Is this the expected behavior? I have many components in my project with conflicting names (like Stack, Container, Circle), which should not be changed in any way by Panda.

astahmer commented 6 months ago

you're right, this is not the expected behaviour I'll look into that !