You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Webback build throws the error Cannot find module: 'chalk'. Make sure this package is installed. because the package was never installed due to no mention of it in the package.json
The fix, is to add chalk as a dependency or as a peerDependency in the package.json.
The text was updated successfully, but these errors were encountered:
In the interim, I am patching this dependency using the pnpmfile.js as documented on the PNPM website here. PNPM is stricter than more popular package managers such as NPM and/or Yarn but is more performant in many ways.
When using the PNPM package manager, any dependencies not explicitly mentioned in the package.json will be ignored at time of package installation.
The following code (found in
node_modules\webpack-version-file-plugin\index.js
) make the following reference to the chalk package.Webback build throws the error Cannot find module: 'chalk'. Make sure this package is installed. because the package was never installed due to no mention of it in the package.json
The fix, is to add
chalk
as a dependency or as a peerDependency in thepackage.json
.The text was updated successfully, but these errors were encountered: