From d2c00dc467996478817ef0da290c4ac17e08cb1c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 30 Jan 2023 11:13:01 +0000 Subject: [PATCH] docs: add note about directory import --- docs/7.migration/2.configuration.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/7.migration/2.configuration.md b/docs/7.migration/2.configuration.md index c9d163b380..a1140dc59e 100644 --- a/docs/7.migration/2.configuration.md +++ b/docs/7.migration/2.configuration.md @@ -77,6 +77,17 @@ Nuxt and Nuxt Modules are now build-time-only. 1. Move all your `buildModules` into `modules`. 2. Check for Nuxt 3 compatibility of modules. +3. If you have any local modules pointing to a directory you should update this to point to the entry file: + +```diff + export default defineNuxtConfig({ + modules: { +- '~/modules/my-module' ++ '~/modules/my-module/index' + } + }) +``` + ::alert If you are a module author, you can check out [more information about module compatibility](/docs/migration/module-authors) and [our module author guide](/docs/guide/going-further/modules).