FormidableLabs / webpack-dashboard

A CLI dashboard for webpack dev server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack-dashboard has undeclared dependency on chalk

am-a opened this issue · comments

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
  1. Add webpack-dashboard to a yarn 2 project without loose mode
  2. Attempt to run webpack-dashboard
  3. 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