From 599f12856ea190d36d75204edbe5c0d986462a3c Mon Sep 17 00:00:00 2001 From: Ivan Demchuk Date: Thu, 12 Sep 2024 17:51:28 +0300 Subject: [PATCH] Fix build --- pnpm-lock.yaml | 6 +++--- src/nuxt.ts | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 038d768..79ef909 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7453,7 +7453,7 @@ snapshots: ky: 1.7.2 registry-auth-token: 5.0.2 registry-url: 6.0.1 - semver: 7.6.2 + semver: 7.6.3 package-manager-detector@0.2.0: {} @@ -7812,7 +7812,7 @@ snapshots: semver-diff@4.0.0: dependencies: - semver: 7.6.2 + semver: 7.6.3 semver@5.7.2: {} @@ -8267,7 +8267,7 @@ snapshots: is-npm: 6.0.0 latest-version: 9.0.0 pupa: 3.1.0 - semver: 7.6.2 + semver: 7.6.3 semver-diff: 4.0.0 xdg-basedir: 5.1.0 diff --git a/src/nuxt.ts b/src/nuxt.ts index 75a63fd..9f9896c 100644 --- a/src/nuxt.ts +++ b/src/nuxt.ts @@ -1,5 +1,9 @@ import type { ExternalPluginOptionsFolder, ExternalPluginOptionsFunction } from './types' import { addVitePlugin, defineNuxtModule } from '@nuxt/kit' + +// Workaround for: +// src/nuxt.ts(5,1): error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/@nuxt+schema@3.0.0_rollup@2.79.0/node_modules/@nuxt/schema'. This is likely not portable. A type annotation is necessary. +import type { } from '@nuxt/schema' import { directiveTransform } from './directive-transform' import { ExternalFluentPlugin, SFCFluentPlugin, type SFCPluginOptions } from './vite'