components
components copied to clipboard
Nuxt build fails when using yarn berry plug-n-play mode
Describe the bug
- Nuxt >= v2.15.0 build fails with Yarn v3 PnP because of unmet peerDependency of
@nuxt/components-
@nuxt/componentshas peerDependency ofconsola, butnuxtitself does not hasconsolaas a dependency
-
- This unmet peerDependency is treated differently depending on the package manager.
- Yarn v1 treats it as a warning
- Yarn v3 PnP mode treats it as an error
- Yarn v1 treats it as a warning
Is there any reason for specifying consola as a peerDependency? If not necessary, I guess it would better be removed.
To Reproduce
- Build [email protected] with yarn v3.1 (set
nodeLinker: pnpin .yarnrc.yml) - Please refer to a reproduction repo (https://github.com/LunaTK/nuxt-components-peerdep-bug).
Expected behavior
- Nuxt build should succeed no matter which package manager is used
Screenshots provided above
Additional context none