amp-module icon indicating copy to clipboard operation
amp-module copied to clipboard

Yarn 2: explicit webpack dependency

Open mfrascati opened this issue 4 years ago • 1 comments

On yarn 2 install:

@nuxtjs/amp@npm:0.5.4 doesn't provide webpack (p734a6), requested by raw-loader

As of https://dev.to/arcanis/implicit-transitive-peer-dependencies-ed0 the webpack dep should be listed in package.json, or is there any reason this cannot be done?

mfrascati avatar Feb 17 '21 09:02 mfrascati

I'm not very familiar with yarn 2, but I think same error will remain even if we add webpack into peerDependencies. Because in Nuxt projects webpack is not lists as a direct dependency. webpack is part of @nuxt/webpack module.

Maybe @pi0 could help us on this

farnabaz avatar Feb 19 '21 12:02 farnabaz