diff --git a/packages/nuxt/src/core/app.ts b/packages/nuxt/src/core/app.ts index d5d007b51e..467376d827 100644 --- a/packages/nuxt/src/core/app.ts +++ b/packages/nuxt/src/core/app.ts @@ -119,7 +119,7 @@ export async function resolveApp (nuxt: Nuxt, app: NuxtApp) { const name = getNameFromPath(file, resolve(config.srcDir, layoutDir)) if (!name) { // Ignore files like `~/layouts/index.vue` which end up not having a name at all - logger.warn(`No layout name could not be resolved for \`~/${relative(nuxt.options.srcDir, file)}\`. Bear in mind that \`index\` is ignored for the purpose of creating a layout name.`) + logger.warn(`No layout name could be resolved for \`~/${relative(nuxt.options.srcDir, file)}\`. Bear in mind that \`index\` is ignored for the purpose of creating a layout name.`) continue } app.layouts[name] = app.layouts[name] || { name, file } @@ -135,7 +135,7 @@ export async function resolveApp (nuxt: Nuxt, app: NuxtApp) { const name = getNameFromPath(file) if (!name) { // Ignore files like `~/middleware/index.vue` which end up not having a name at all - logger.warn(`No middleware name could not be resolved for \`~/${relative(nuxt.options.srcDir, file)}\`. Bear in mind that \`index\` is ignored for the purpose of creating a middleware name.`) + logger.warn(`No middleware name could be resolved for \`~/${relative(nuxt.options.srcDir, file)}\`. Bear in mind that \`index\` is ignored for the purpose of creating a middleware name.`) continue } app.middleware.push({ name, path: file, global: hasSuffix(file, '.global') })