chore: fix typo in warning log (#25265)

This commit is contained in:
Alexander Lichter 2024-01-17 17:47:43 +01:00 committed by GitHub
parent fd8b263326
commit d7d280fca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ export const nuxtImportProtections = (nuxt: { options: NuxtOptions }, options: {
}
for (const i of [/(^|node_modules\/)@nuxt\/(kit|test-utils)/, /(^|node_modules\/)nuxi/, /(^|node_modules\/)nuxt\/(config|kit|schema)/, 'nitropack']) {
patterns.push([i, 'This module cannot be imported' + (options.isNitro ? 'in server runtime.' : ' in the Vue part of your app.')])
patterns.push([i, 'This module cannot be imported' + (options.isNitro ? ' in server runtime.' : ' in the Vue part of your app.')])
}
if (options.isNitro) {