You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't use the typegen command because I'm using Yarn PnP. Yarn PnP does not use the traditional node_modules folder, so when the Chakra CLI tool attempt to generate types, I get the following error:
Error: EROFS: read-only filesystem, open '/node_modules/@chakra-ui/react/dist/types/styled-system/generated/conditions.gen.d.ts'
(actually 4 of these errors for each file that is generated).
The typegen tool really shouldn't be writing to the node_modules folder anyway, or assuming it's writable. Would it be possible to specify a custom output folder for these types? Would that even work with how the library reads these types?
This is causing other type errors in my codebase. In particular if I try to use useSlotRecipe for a custom component it returns a never type because - as far as it is concerned - the slot doesn't even exist.
Link to Reproduction
n/a
Steps to reproduce
No response
Chakra UI Version
3.2.5
Browser
No response
Operating System
macOS
Windows
Linux
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
I can't use the
typegen
command because I'm using Yarn PnP. Yarn PnP does not use the traditionalnode_modules
folder, so when the Chakra CLI tool attempt to generate types, I get the following error:(actually 4 of these errors for each file that is generated).
The typegen tool really shouldn't be writing to the
node_modules
folder anyway, or assuming it's writable. Would it be possible to specify a custom output folder for these types? Would that even work with how the library reads these types?This is causing other type errors in my codebase. In particular if I try to use
useSlotRecipe
for a custom component it returns anever
type because - as far as it is concerned - the slot doesn't even exist.Link to Reproduction
n/a
Steps to reproduce
No response
Chakra UI Version
3.2.5
Browser
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: