Specifically, in styled-system/types/composition.d.mtshere:
/* eslint-disable */
import type { CompositionStyleObject } from './system-types.d.mts';
import type { Token } from '../tokens.d.mts';
// ^-- Cannot find module "../tokens.d.mts' or its corresponding type declarations.
Strangely, that same file is imported in styled-system/types/patterns.d.mtshere but results in the following:
import type { TokenCategory } from '../tokens/index.d.mts';
Description
When I run codegen with a config enabling
forceConsistentTypeExtension
, thecomposition.d.mts
ends up referencing an invalid path.Specifically, in
styled-system/types/composition.d.mts
here:Strangely, that same file is imported in
styled-system/types/patterns.d.mts
here but results in the following:... which does exist.
Link to Reproduction
https://stackblitz.com/~/github.com/jasisk/pandacss-bug
Steps to reproduce
"forceConsistentTypeExtension": true
topanda.config.ts
panda codegen
./styled-system/types/composition.d.mts
Attached demo repository is vanilla create-vite + panda with the appropriately reproducing panda config.
JS Framework
React (TS)
Panda CSS Version
0.18.2
Browser
N/A
Operating System
Additional Information
No response