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
As a user, I'd want some information about my package.json being non-json or otherwise malformed -- maybe even providing an indication of where the problem exists in the json file.
The text was updated successfully, but these errors were encountered:
One possible strategy for solving this: when we detect a parse failure when trying to read package.json, check it for conflict markers with a straightforward regex match on the string contents of the package.json file and report a more specific error type if so; otherwise, return the original error type.
NOTE: this issue predates this project's rename to Volta.
Repro Instructions
Create a repo with this package.json
package.json
and then attempt to run
yarn
The error
As a user, I'd want some information about my
package.json
being non-json or otherwise malformed -- maybe even providing an indication of where the problem exists in the json file.The text was updated successfully, but these errors were encountered: