akashamba
TTCTheo's Typesafe Cult
•Created by akashamba on 2/9/2025 in #questions
TypeScript React: Confused about icon: Icon and {...}: Props syntax in component props
Makes sense, and the most common use case for this would be forms
9 replies
TTCTheo's Typesafe Cult
•Created by akashamba on 2/9/2025 in #questions
TypeScript React: Confused about icon: Icon and {...}: Props syntax in component props
Oh I see! So type errors can be caught during build time (which helps check prevent type inconsistency across the app) but not during runtime if, as you mentioned, the href and label are loaded from some source which is out of the app's control
9 replies
TTCTheo's Typesafe Cult
•Created by akashamba on 2/9/2025 in #questions
TypeScript React: Confused about icon: Icon and {...}: Props syntax in component props
Ahh okay that makes sense! Thank you for your answer 😁
9 replies
TTCTheo's Typesafe Cult
•Created by akashamba on 2/9/2025 in #questions
TypeScript React: Confused about icon: Icon and {...}: Props syntax in component props
Thank you for your reply! This is mostly what I initially understood as well, but I had assumed that
}: Props
was explicitly enforcing that the object must be of type Props
. Is that not the case?9 replies
TTCTheo's Typesafe Cult
•Created by Svuvich on 2/4/2025 in #questions
Drive tutorial fails to deploy
Aha that works too xD
5 replies
TTCTheo's Typesafe Cult
•Created by Svuvich on 2/4/2025 in #questions
Drive tutorial fails to deploy
I encountered the same issue as well and subsequently found this issue on the corepack repo: https://github.com/nodejs/corepack/issues/612
This is the workaround posted on a related issue in the pnpm repo: https://github.com/pnpm/pnpm/issues/9014#issuecomment-2623761494
However what worked for me to deploy to netlify is to use npm instead of pnpm. Note, I'm not entirely sure if using npm instead of pnpm might trigger other issues later in the tutorial (most probably not 🤞). I have only just fixed this issue and haven't gone past the timestamp you have shared.
Good luck, would love to hear what works for you / any other issues you may face
5 replies