Closed joelpierre closed 2 years ago
Hi @joelpierre the correct path for CloseBehavior is
@segment/consent-manager/container
you can check out storybook here
Hi @joelpierre the correct path for CloseBehavior is
@segment/consent-manager/container
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
@joelpierre How'd you get around it? :-D
The dreaded "..." as any
"..." as any
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