-
When using Stitches with Create React App and running tests, there's a conflict with Stitches' While it is not necessarily Stitches responsibility to avoid this conflict, the name My suggestion would be to rename
// stitches.config.ts
export const { styled, theme, global } = createCss({
...
}
// to fix, rename global:
export const { styled, theme, global: stitchesGlobal } = createCss({
...
} FAIL src/App.test.tsx
● Test suite failed to run
/Users/rafael/dev/maintained/react-interactive/demo/src/stitches.config.ts:13
global
^
SyntaxError: Identifier 'global' has already been declared |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks, this was brought up in Discord as well. (maybe it was by you? don't remember now) I think that makes sense. I agree The first thing that comes to mind are Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Addressed here: #683 Follow issue for when it's released. Thanks everyone. |
Beta Was this translation helpful? Give feedback.
Addressed here: #683
Follow issue for when it's released. Thanks everyone.