webpack-dashboard has undeclared dependency on chalk
am-a opened this issue · comments
Alexander Mackay-Austin commented
Problem
Please provide a description of the bug / issue, and provide the details below:
webpack-dashboard
uses chalk
but does not declare it in package.json
. This breaks yarn>2
.
Error: webpack-dashboard tried to access chalk, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: chalk (via "chalk")
Required by: webpack-dashboard@....
====================================================================
Steps to reproduce the problem
- Add webpack-dashboard to a yarn 2 project without loose mode
- Attempt to run webpack-dashboard
- You will receive an error
To fix locally (and prove the issue):
- Add the following to your
.yarnrc.yml
webpack-dashboard@<=3.2.0:
dependencies:
chalk: '^2.0.0'
webpack-dashboard
will then run successfully.
====================================================================
More Details
- What version of webpack-dashboard are you using? 3.2.0