Skip to content

Conversation

@juanrgm
Copy link
Contributor

@juanrgm juanrgm commented Mar 17, 2025

📝 Description

The default cwd option is process.cwd() and it uses Windows path separators, but there is code that uses the unix path separator for string matching.

⛳️ Current behavior (updates)

Some import declarations are not detected if you use tsconfig path aliases.

🚀 New behavior

The import declarations are detected and the result of parser is not empty.

💣 Is this a breaking change (Yes/No):

No.

📝 Additional Information

A temporary workaround could be:

// panda.config.ts
export default defineConfig({
  cwd: process.cwd().toString().replaceAll("\\", "/")
});

@changeset-bot
Copy link

changeset-bot bot commented Mar 17, 2025

🦋 Changeset detected

Latest commit: 709a119

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 20 packages
Name Type
@pandacss/core Patch
@pandacss/generator Patch
@pandacss/node Patch
@pandacss/parser Patch
@pandacss/reporter Patch
@pandacss/astro-plugin-studio Patch
@pandacss/dev Patch
@pandacss/postcss Patch
@pandacss/studio Patch
@pandacss/config Patch
@pandacss/extractor Patch
@pandacss/is-valid-prop Patch
@pandacss/logger Patch
@pandacss/preset-atlaskit Patch
@pandacss/preset-base Patch
@pandacss/preset-open-props Patch
@pandacss/preset-panda Patch
@pandacss/shared Patch
@pandacss/token-dictionary Patch
@pandacss/types Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Mar 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
panda-docs ✅ Ready (Inspect) Visit Preview May 7, 2025 10:07am
panda-playground ✅ Ready (Inspect) Visit Preview May 7, 2025 10:07am
panda-studio ✅ Ready (Inspect) Visit Preview May 7, 2025 10:07am

@juanrgm
Copy link
Contributor Author

juanrgm commented May 7, 2025

Any news?

@segunadebayo segunadebayo changed the title Normalize path separators fix: normalize path separators May 20, 2025
@segunadebayo segunadebayo merged commit 5e5af6b into chakra-ui:main May 20, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants