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 am seeing a type error when trying to use the pageTrackerSkipSamePath option in TypeScript, like so:
app.use(
VueGtag,
{
pageTrackerSkipSamePath: false, // This is line 34
config: { id: import.meta.env.VITE_GA },
},
router
);
Expected behavior
Compile without error.
Actual behavior
I get an error:
src/main.ts:34:5 - error TS2345: Argument of type '{ pageTrackerSkipSamePath: boolean; config: { id: any; }; }' is not assignable to parameter of type 'PluginOptions'.
Object literal may only specify known properties, and 'pageTrackerSkipSamePath' does not exist in type 'PluginOptions'.
34 pageTrackerSkipSamePath: false,
Environment *
Run this command in the project folder and fill in their results:
npm ls vue-gtag
:npm ls vue
:Then, specify:
Description *
I am seeing a type error when trying to use the
pageTrackerSkipSamePath
option in TypeScript, like so:Expected behavior
Compile without error.
Actual behavior
I get an error:
Further Info
It seems that the options don't match up with the type definition.
The text was updated successfully, but these errors were encountered: