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
TypeError: Cannot read property 'op_mini' of undefined
at normalizeStats (<...>/node_modules/browserslist/node.js:127:11)
at Object.getStat (<...>/node_modules/browserslist/node.js:209:12)
at Function.browserslist.coverage (<....>/node_modules/browserslist/index.js:580:27)
getStat: function getStat (opts, data) {
// some ops, but "data" argument is not overrided
return normalizeStats(data, stats) // <- data is undefined
}
And then browserlist tries to access the data members w/o checking that the data exists.
Hello! I tried to use your snippet to get coverage when querying my custom stats.
But I get this error
I found that it is caused by this 3f54ebd/index.js#L580 :
Which calls
getStat()
frombrowserslist/node.js
3f54ebd
/node.js#L209
And then browserlist tries to access the data members w/o checking that the
data
exists.3f54ebd/node.js#L127
So, I considered to add extra check
The text was updated successfully, but these errors were encountered: