Closed julamb closed 10 months ago
Will check. If you use Next.js, you could also use the official React Wrapper. It should be more stable in terms of types.
Ok thanks! I could not find atcb_action
in add-to-calendar-button-react
at first glance, but maybe I didn't look hard enough :)
ah, you are right. There, we do not export it.
Thanks for the PR! Release is on the way.
Working perfectly now! Thanks for the quick release, and the great lib :)
What happened?
I was trying to use
atcb_action
in a Next.js project with Typescript and import it as follows:It works but TypeScript does not compile and complains of the following:
As a workaround, I copied the typings from add-to-calendar-button/index.d.ts and redeclared the module in my own repo.
System & Environment
add-to-calendar-button@2.5.5 typescript@5.2.2