diff --git a/docs/content/1.getting-started/5.migration.md b/docs/content/1.getting-started/5.migration.md index 5e0e0c7e50..b7b1096216 100644 --- a/docs/content/1.getting-started/5.migration.md +++ b/docs/content/1.getting-started/5.migration.md @@ -106,7 +106,7 @@ Avoid the usage of `__dirname` and `__filename` as much as possible. ### Ensure plugins default export -If you inject a Nuxt plugin that does not have `export default` (such as global Vue plugins), ensure you add `export default {}` to the end of it. +If you inject a Nuxt plugin that does not have `export default` (such as global Vue plugins), ensure you add `export default () => { }` to the end of it. ::code-group ```js [Before]