Skip to content

[@emotion/styled] styled() function props argument losing typing. #2898

Answered by srmagura
enrique-ramirez asked this question in Q&A
Discussion options

You must be logged in to vote

I commented out this line from packages/tsconfig/base.json and it started working:

    "preserveSymlinks": true,

tsc (in the ui-tools folder) now reports 2 errors which are both legit.

preserveSymlinks in the TypeScript docs

I'm not exactly sure why that option was causing the behavior you observed, but FWIW, I have never used this compiler option, and I would not recommend using it unless you have a compelling reason to do so.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by srmagura
Comment options

You must be logged in to vote
7 replies
@enrique-ramirez
Comment options

@enrique-ramirez
Comment options

@srmagura
Comment options

@enrique-ramirez
Comment options

@srmagura
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #2897 on September 16, 2022 03:02.