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
In a strict (typescript) environment the module fails to build due to the following error:
build failed (node_modules/node-dns-sd/lib/dns-sd.js:236:16 v = 'address';): Cannot assign to "v" because it is a constant
the offending code:
if ('key' in params) {
const v = params['key']; // <---
if (typeof (v) !== 'string' || !/^(address|fqdn)$/.test(v)) {
return { error: new Error('The `key` is invalid.') };
}
if (!v) {
v = 'address'; // <--- can't reassign to const v
}
p['key'] = v;
}
The text was updated successfully, but these errors were encountered:
In a strict (typescript) environment the module fails to build due to the following error:
the offending code:
The text was updated successfully, but these errors were encountered: