nuxt-themes/docus

Nuxt 3.7.0 Warning: Two component files resolving to the same name

fkammer opened this issue · 9 comments

Just upgraded my Docus project to Nuxt 3.7.0. On startup and build I now see a lot of "Two component files resolving to the same name" warnings. Despite that, everything is working as expected.

❯ npm run dev

> docus-starter@0.1.0 dev
> nuxi dev

Nuxt 3.7.0 with Nitro 2.6.2                                                                                                                                                                                                        10:35:22 AM
                                                                                                                                                                                                                                   10:35:22 AM
  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

✔ Nuxt DevTools is enabled v0.8.1 (experimental)                                                                                                                                                                                   10:35:25 AM

 WARN  [nuxt] Two component files resolving to the same name Logo:                                                                                                                                                                 10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt-themes/docus/components/app/Logo.vue
 - <redacted>/developer-documentation/components/Logo.vue


 WARN  [nuxt] Two component files resolving to the same name Ellipsis:                                                                                                                                                             10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt-themes/elements/components/globals/Ellipsis.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/docus/components/app/Ellipsis.vue


 WARN  [nuxt] Two component files resolving to the same name SourceLink:                                                                                                                                                           10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt-themes/elements/components/globals/SourceLink.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/docus/components/docs/SourceLink.vue


 WARN  [nuxt] Two component files resolving to the same name DocumentDrivenNotFound:                                                                                                                                               10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/DocumentDrivenNotFound.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/docus/components/app/DocumentDrivenNotFound.vue


 WARN  [nuxt] Two component files resolving to the same name ProseA:                                                                                                                                                               10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseA.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseA.vue


 WARN  [nuxt] Two component files resolving to the same name ProseBlockquote:                                                                                                                                                      10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseBlockquote.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseBlockquote.vue


 WARN  [nuxt] Two component files resolving to the same name ProseCode:                                                                                                                                                            10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseCode.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseCode.vue


 WARN  [nuxt] Two component files resolving to the same name ProseCodeInline:                                                                                                                                                      10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseCodeInline.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseCodeInline.vue


 WARN  [nuxt] Two component files resolving to the same name ProseEm:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseEm.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseEm.vue


 WARN  [nuxt] Two component files resolving to the same name ProseH1:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseH1.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseH1.vue


 WARN  [nuxt] Two component files resolving to the same name ProseH2:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseH2.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseH2.vue


 WARN  [nuxt] Two component files resolving to the same name ProseH3:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseH3.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseH3.vue


 WARN  [nuxt] Two component files resolving to the same name ProseH4:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseH4.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseH4.vue


 WARN  [nuxt] Two component files resolving to the same name ProseH5:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseH5.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseH5.vue


 WARN  [nuxt] Two component files resolving to the same name ProseH6:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseH6.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseH6.vue


 WARN  [nuxt] Two component files resolving to the same name ProseHr:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseHr.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseHr.vue


 WARN  [nuxt] Two component files resolving to the same name ProseImg:                                                                                                                                                             10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseImg.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseImg.vue


 WARN  [nuxt] Two component files resolving to the same name ProseLi:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseLi.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseLi.vue


 WARN  [nuxt] Two component files resolving to the same name ProseOl:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseOl.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseOl.vue


 WARN  [nuxt] Two component files resolving to the same name ProseP:                                                                                                                                                               10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseP.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseP.vue


 WARN  [nuxt] Two component files resolving to the same name ProseStrong:                                                                                                                                                          10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseStrong.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseStrong.vue


 WARN  [nuxt] Two component files resolving to the same name ProseTable:                                                                                                                                                           10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseTable.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseTable.vue


 WARN  [nuxt] Two component files resolving to the same name ProseTbody:                                                                                                                                                           10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseTbody.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseTbody.vue


 WARN  [nuxt] Two component files resolving to the same name ProseTd:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseTd.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseTd.vue


 WARN  [nuxt] Two component files resolving to the same name ProseTh:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseTh.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseTh.vue


 WARN  [nuxt] Two component files resolving to the same name ProseThead:                                                                                                                                                           10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseThead.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseThead.vue


 WARN  [nuxt] Two component files resolving to the same name ProseTr:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseTr.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseTr.vue


 WARN  [nuxt] Two component files resolving to the same name ProseUl:                                                                                                                                                              10:35:26 AM

 - <redacted>/developer-documentation/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseUl.vue
 - <redacted>/developer-documentation/node_modules/@nuxt-themes/typography/components/global/ProseUl.vue

ℹ Vite client warmed up in 4762ms                                                                                                                                                                                                  10:35:32 AM
✔ Nitro built in 3022 ms                                                                                                                                                                                                     nitro 10:35:33 AM

Same to me.

and

[8:39:48 PM]  ERROR  [worker reload] [worker init] Package subpath './lib/parse.js' is not defined by "exports" in /home/productdevbook/oku-ui/docs/node_modules/.pnpm/mdast-util-from-markdown@1.3.1/node_modules/micromark/package.json imported from /home/productdevbook/oku-ui/docs/node_modules/.pnpm/mdast-util-from-markdown@1.3.1/node_modules/mdast-util-from-markdown/lib/index.js

  at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
  at new NodeError (node:internal/errors:405:5)
  at exportsNotFound (node:internal/modules/esm/resolve:359:10)
  at packageExportsResolve (node:internal/modules/esm/resolve:695:9)
  at packageResolve (node:internal/modules/esm/resolve:870:14)
  at moduleResolve (node:internal/modules/esm/resolve:936:20)
  at defaultResolve (node:internal/modules/esm/resolve:1129:11)
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
  at link (node:internal/modules/esm/module_job:76:36)

this problem

phojie commented

its been 2 weeks, felt helpless to this one too, been working around to make a fix on this one. any help from the dev team ?

phojie commented

@danielroe errors still persist, any suggestions?,

i used edge version of nuxt, and

Screenshot 2023-09-12 at 2 51 22 AM

Would you try with 3.7.2-28240949.574102c5? It looks like you're using the previous edge release.

phojie commented

Would you try with 3.7.2-28240949.574102c5? It looks like you're using the previous edge release.

still it does, do you have any recommendations on this?, I actually tried several ways on this for the past 3 days. i still cant figure out. thank you for you help @danielroe

Screenshot 2023-09-12 at 4 41 52 AM

@phojie Maybe you can provide a reproduction? 🙏

phojie commented

@danielroe yeah sure, here is a forked from docus-starter

https://stackblitz.com/edit/github-jld2lu?file=package.json