Open Eli-Black-Work opened 3 years ago
As a temporary workaround, it's possible to add this to one's .yarnrc.yml
file:
# svg-sprite-loader depends on webpack but doesn't yet list it as a peer dependency.
#
# This gives us an error while compiling, so we patch svg-sprite-loader to add webpack as a peerDependency.
#
# Bug report: https://github.com/JetBrains/svg-sprite-loader/issues/450
packageExtensions:
svg-sprite-loader@*:
peerDependencies:
"webpack": "*"
Has it been solved?
@zhibin2015 For a workaround, see the comment directly above yours 🙂
svg-sprite-loader
useswebpack
but doesn't declare it as a peer dependency, which generates warnings when using the Yarn Berry's PnP (plug and play) feature:To fix this problem, I believe
svg-sprite-loader
should listwebpack
in its peerDependencies or optionalDependencies section.