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

Pattern styles not compiled in monorepo #2310

Closed
1 of 3 tasks
robcostello1 opened this issue Mar 5, 2024 · 4 comments
Closed
1 of 3 tasks

Pattern styles not compiled in monorepo #2310

robcostello1 opened this issue Mar 5, 2024 · 4 comments

Comments

@robcostello1
Copy link

Description

When I use patterns in the UI library package in my monorepo, I expect the styles to be generated when running my app but no styles are generated. I have closely followed the example here, but I've amended the reproduction to closely match our project.

Other Panda functions like css are generating styles correctly.

It looks like I'm having a similar issue to this but as far as I can see I have the paths set up correctly.

Link to Reproduction

https://stackblitz.com/~/github.com/robcostello1/panda-pattern-monorepo

Steps to reproduce

  1. Go to stackblitz reproduction
  2. View compiled page
  3. The element containing the text should have a column-span of 6 (half the page width)
  4. Instead, no column-span is applied

JS Framework

React (TS)

Panda CSS Version

0.33.0

Browser

Chrome 121

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

@robcostello1
Copy link
Author

robcostello1 commented Mar 5, 2024

Screenshot 2024-03-05 at 12 10 25

@astahmer
Copy link
Collaborator

astahmer commented Mar 5, 2024

you're currently using importMap: "@eonnext/styled-system", but the imports from the styled-system seems to be coming from @scootch/styled-system

import { cx } from "@scootch/styled-system/css";
import {
  type GridItemProps as StylesGridItemProps,
  type HTMLStyledProps,
  styled,
} from "@scootch/styled-system/jsx";
import { gridItem } from "@scootch/styled-system/patterns";

so you need to set the importMap to the same thing, e.g importMap: "@scootch/styled-system"

@astahmer astahmer closed this as completed Mar 5, 2024
@astahmer
Copy link
Collaborator

astahmer commented Mar 5, 2024

@robcostello1
Copy link
Author

Aha. Thank you. That was a typo in converting to the minimal reproduction. Changing that does fix the issue in the reproduction.

Unfortunately the path is correct in the actual project so there's something else causing the issue there. I'll investigate further and update here.

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