pmndrs / react-three-editor

🔌 A one of a kind scene editor that writes changes back into your code
MIT License
617 stars 40 forks source link

TS error when trying to build `@editable-jsx/ui` #34

Closed krispya closed 1 year ago

krispya commented 1 year ago

I get the following error when trying to build @editable-jsx/ui.

@editable-jsx/ui:build: 🎁 error src/HoveredIcon.ts:4:14 - error TS2742: The inferred type of 'HoveredIcon' cannot be named without a reference to '.pnpm/@stitches+react@1.2.8_react@18.2.0/node_modules/@stitches/react/types/config'. This is likely not portable. A type annotation is necessary.
@editable-jsx/ui:build: 🎁 error
@editable-jsx/ui:build: 🎁 error 4 export const HoveredIcon = styled(Icon, {})
@editable-jsx/ui:build: 🎁 error     
krispya commented 1 year ago

I believe this is the related issue: https://github.com/microsoft/TypeScript/issues/42873