-
Notifications
You must be signed in to change notification settings - Fork 143
closeBehavior enum not exported properly #266
Comments
Hi @joelpierre the correct path for CloseBehavior is you can check out storybook here |
Hi @edsonjab ! If I try to import this enum, I get the following... |
Yep same @mattkoch-bb, it isn't exported from that location @edsonjab . I think the issue is when you build for production the type definitions are in a completely different location so TS gets a bit confused, typically they would be exported from the "same" path just the build/dist folder instead. |
@joelpierre How'd you get around it? :-D |
The dreaded |
In your import statement somewhere, @joelpierre ? |
const closeBehavior = 'accept' as any;
...
closeBehavior={closeBehavior}
... |
Can't use the enum that is apparently exported 😅 and when I try to pass the prop it fails
The text was updated successfully, but these errors were encountered: