Skip to content

fix(tpc): a type annotation is necessary #133

Closed
@dargmuesli

Description

@dargmuesli

Upgrading to v6.0.2 I get the following errors in the Nuxt Turnstile module:

.nuxt/nuxt-scripts/tpc/google-tag-manager.ts(13,17): error TS2742: The inferred type of 'useScriptGoogleTagManager' cannot be named without a reference to '.pnpm/@[email protected][email protected][email protected]_/node_modules/@unhead/vue'. This is likely not portable. A type annotation is necessary.
.nuxt/nuxt-scripts/tpc/google-tag-manager.ts(6,7): error TS2742: The inferred type of 'OptionSchema' cannot be named without a reference to '.pnpm/[email protected]/node_modules/valibot'. This is likely not portable. A type annotation is necessary.
.nuxt/nuxt-scripts/tpc/google-tag-manager.ts(6,7): error TS2742: The inferred type of 'OptionSchema' cannot be named without a reference to '.pnpm/[email protected]/node_modules/valibot'. This is likely not portable. A type annotation is necessary.
.nuxt/nuxt-scripts/tpc/google-analytics.ts(13,17): error TS2742: The inferred type of 'useScriptGoogleAnalytics' cannot be named without a reference to '.pnpm/@[email protected][email protected][email protected]_/node_modules/@unhead/vue'. This is likely not portable. A type annotation is necessary.
.nuxt/nuxt-scripts/tpc/google-analytics.ts(6,7): error TS2742: The inferred type of 'OptionSchema' cannot be named without a reference to '.pnpm/[email protected]/node_modules/valibot'. This is likely not portable. A type annotation is necessary.
.nuxt/nuxt-scripts/tpc/google-analytics.ts(6,7): error TS2742: The inferred type of 'OptionSchema' cannot be named without a reference to '.pnpm/[email protected]/node_modules/valibot'. This is likely not portable. A type annotation is necessary.

https://github.com/nuxt-modules/turnstile/actions/runs/9820960416/job/27116095724?pr=321#step:14:24

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions