[static css + ESM preset] generates invalid css syntax error #2261
adbutterfield
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I have a monorepo with the tokens as a package exporting a preset. I found that when you have a preset built as esm, and you have both global and semantic spacing tokens, and you want to build
staticCss
you get an error at build time.The error:
It seems like it might be building correctly. So maybe the error is getting thrown by mistake?
Link to Reproduction
https://stackblitz.com/edit/vitejs-vite-rwpwxa?file=panda.config.ts,preset.ts&terminal=dev
Steps to reproduce
There are 3 ways to build without error:
panda.config.ts
, useimport preset from './dist/preset.cjs'
instead ofimport preset from './dist/preset';
preset.ts
, comment outsemanticTokens
.panda.config.ts
, comment outstaticCss
Of course, 2 and 3 will not generate the resulting static CSS that we want.
JS Framework
No response
Panda CSS Version
0.31.0
Browser
No response
Operating System
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions