Attempt to build the project: bun run build ( "build": "tsc --p ./tsconfig-build.json && vite build")
What is the expected behavior?
The project should build successfully without TypeScript errors.
What do you see instead?
src/components/atoms/SimpleDialog/SimpleDialog.style.ts:16:14 - error TS2742: The inferred type of 'StyledDialog' cannot be named without a reference to 'react/node_modules/csstype'. This is likely not portable. A type annotation is necessary.
What version of Bun is running?
1.1.7+b0b7db5c0
What platform is your computer?
Darwin 23.3.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
The project should build successfully without TypeScript errors.
What do you see instead?
src/components/atoms/SimpleDialog/SimpleDialog.style.ts:16:14 - error TS2742: The inferred type of 'StyledDialog' cannot be named without a reference to 'react/node_modules/csstype'. This is likely not portable. A type annotation is necessary.
16 export const StyledDialog = styled(animated.div)`
Additional information
It works with npm