Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scriptProps type is missing custom Plausible parameters #113

Open
yannxaver opened this issue Nov 29, 2023 · 1 comment
Open

scriptProps type is missing custom Plausible parameters #113

yannxaver opened this issue Nov 29, 2023 · 1 comment

Comments

@yannxaver
Copy link

yannxaver commented Nov 29, 2023

// PlausibleProvider.d.ts
scriptProps?: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;

Error:

Object literal may only specify known properties, and ''data-api'' does not exist in type 'DetailedHTMLProps<ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>'

Solution for now:

// @ts-expect-error missing types
@ansonkao
Copy link

I also have this type error

From this example: https://github.com/4lejandrito/next-plausible/blob/master/test/page/pages/scriptProps.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants