Duplicated imports "definePageMeta" the one from "[app_root]/node_modules/nuxt3/dist/pages/runtime/composables" has been ignored.
See original GitHub issueAfter a fresh install I keep getting this warning in the nuxi dev
command console every time I save a file.
Environment
- Operating System:
Linux
- Node Version:
v16.13.1
- Nuxt Version:
3.0.0-27459267.f69126e
- Package Manager:
yarn@1.22.17
- Builder:
vite
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
Reproduction
Steps to reproduce:
yarn nuxi init nuxt3-app
cd nuxt3-app
yarn install
yarn dev -o
Then I delete the app.vue
file.
Edit the nuxt.config.ts
:
import { defineNuxtConfig } from 'nuxt3'
export default defineNuxtConfig({
srcDir: './src'
})
Create the directory ./src
.
Create the directory ./src/pages
.
Create the file ./src/pages/index.ts
.
Describe the bug
And I get the Warning:
Duplicated imports "definePageMeta" the one from "[app_root]/node_modules/nuxt3/dist/pages/runtime/composables" has been ignored.
How can this be fixed?
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:16 (7 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Each time I save a file and it renders, it rewrites the file and adds another
definePageMeta
. This is any example of saving a file 3 times..nuxt/imports.d.ts
export { definePageMeta, definePageMeta, definePageMeta, definePageMeta } from 'xxxx/node_modules/nuxt/dist/pages/runtime/composables';
I’m having the same issue by saving a file inside
compososables directory
while running ondev
mode