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
Gross that a package has turned up (most likely be accident) which relies on this. I'll leave it up to maintainers to decide is this is a bug or "ecosystem alignment feature".
I hit the same issue with [email protected], but thankfully they released 4.0.4 which fixes it. Though, for me, it was a transitive dependency so I had to override it in package.json:
"resolutions": {
"bl": "4.0.4"
}
If you have a newer version of npm it's called overrides now. This, of course, only helps if there is a fixed version published afterwards.
Technically JSON allows duplicate keys, or at least the parser in NodeJS does.
The package
@codeceptjs/helper
v1.0.2 has duplicate keys in itspackage.json
(specificallyscripts
), causing Rules JS to fail to parse.From the answers on https://stackoverflow.com/questions/21832701/does-json-syntax-allow-duplicate-keys-in-an-object originally this was left ambiguous. As of ECMA-262 behaviour of
JSON.parse
was clarified here, it specifies that the last one wins.Gross that a package has turned up (most likely be accident) which relies on this. I'll leave it up to maintainers to decide is this is a bug or "ecosystem alignment feature".
Workaround
The text was updated successfully, but these errors were encountered: