Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of dependencies "webpack-sources" #123

Open
Meng-Lan opened this issue Oct 15, 2020 · 1 comment
Open

Lack of dependencies "webpack-sources" #123

Meng-Lan opened this issue Oct 15, 2020 · 1 comment

Comments

@Meng-Lan
Copy link

After I try to use Yarn Plug'n'Play feature, I get an error.

code: 'UNDECLARED_DEPENDENCY',
data:
{ request: 'webpack-sources',
issuer:
'C:\xxx\Yarn\Cache\v4\npm-rewiremock-3.12.3-d14416b23096e7dcaca017c1b834d43101b71ac7\node_modules\rewiremock\webpack\plugin.js',
issuerLocator: { name: 'rewiremock', reference: '3.12.3' },
dependencyName: 'webpack-sources',
candidates:
[ 'babel-runtime',
'compare-module-exports',
'lodash.some',
'lodash.template',
'node-libs-browser',
'path-parse',
'wipe-node-cache',
'wipe-webpack-cache',
'rewiremock' ] } }

root cause: rewiremock/webpack/plugin.js directly require "webpack-sources", But this dependencies haven't put on package.json at dependencies field.

@Meng-Lan
Copy link
Author

For Phantom dependencies can reference: https://rushjs.io/pages/advanced/phantom_deps/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant