Closed slauzinho closed 1 month ago
+1
Please test out v3.0.1 and if it does not work then reopen this issue
Please make 'vue-router' as an external dependency
Please make 'vue-router' as an external dependency
Is this an issue with tsup? https://tsup.egoist.dev/#excluding-packages
Maybe also open a separate issue for that
Also please try to create a PR for that. Checkout the repo and run the build command, then see that this is only in .d.ts
file
I'm not sure how to fix this right now
@Shinigami92 Version 3.0.1
fixes the issue, thank you 👍
@slauzinho how did you handle VueRouter error?
I don't have that error, maybe because I'm using vue-router?
I'm using vue-router too))
@Shinigami92 external did not help :(
I get not warnings / errors doing this:
app.use(
createGtm({
id: 'XXXXXX',
queryParams: {
gtm_auth: import.meta.env.VITE_GTM_AUTH,
gtm_preview: import.meta.env.VITE_GTM_PREVIEW,
gtm_cookies_win: 'x',
},
enabled: !import.meta.env.DEV,
loadScript: !import.meta.env.DEV,
vueRouter: router,
})
);
Using:
"vue-router": "^4.3.2",
"vue": "^3.4.27",
"@gtm-support/vue-gtm": "^3.0.1",
"typescript": "^5.4.5",
fixed lol
Info
Output or Error
Expected Output
No ts errors
Additional Context
2.2.0
worked as expected only version 3 is throwing the error