node-fetch/fetch-blob

object key naming should not contain '#'

onichandame opened this issue · 2 comments

Problem

in a source file, some keys of a class have # in its name. This may be ok in most situations(I haven't verified tho), but it breaks when using webpack. The error message being:

Module parse failed: Unexpected character '#' (48:1)

We only target v12.17 and above now (cuz of ESM-only)
Private fields got supported in node v12.0.0

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields#browser_compatibility

try updating webpack, linters or nodejs?

fetch-blob has been removed from my dependency tree so the issue is irrelevant for me atm. Even if I will encounter the issue again I guess I should tweak webpack to parse the private fields.