nuxt.jsnuxt3.jsnuxt-content

WARN [nuxt] Two component files resolving


WARN [nuxt] Two component files resolving to the same name ProseCode:

WARN [nuxt] Two component files resolving to the same name ProsePre:

warning after updated nuxt 3 -> 3.7 & nuxt/content 2.4 -> 2.8

how can this be fixed? thanks


Solution

  • As stated in https://github.com/nuxt/content/issues/2266#issuecomment-1720124274

    There are no warnings logged with Content v2.8.2 and Nuxt v3.7.2 anymore.

    So just upgrade to:

    Make sure to run the following command afterwards

    npx nuxi upgrade --force

    It'll delete your lockfile and node_modules folder to make sure you'll get the new versions.