From 6aa5d126525f91d127d88b170f4bef72ff4b2834 Mon Sep 17 00:00:00 2001 From: Robin Kehl Date: Tue, 19 Nov 2024 15:42:10 +0100 Subject: [PATCH] chore: clarify duplicate import message --- packages/nuxt/src/imports/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/imports/module.ts b/packages/nuxt/src/imports/module.ts index ea1dfa740c..7b2a0f08bc 100644 --- a/packages/nuxt/src/imports/module.ts +++ b/packages/nuxt/src/imports/module.ts @@ -132,7 +132,7 @@ export default defineNuxtModule>({ const preset = presetMap.get(i.as) if (preset) { - console.warn(`[imports] "${i.as}" is already defined and auto imported from "${preset}" within nuxt itself. Please don't name your composable the same as a preset, as it will lead to unexpected behavior.`) + console.warn(`[imports] "${i.as}" is already defined and auto imported from "${preset}" within nuxt itself. Please consider renaming "${i.as}" at ${i.from}.`) } i.priority = i.priority || priorities.find(([dir]) => i.from.startsWith(dir))?.[1]