Christian Fei

https://cri.dev

1 posts

Tech

Subscribe via RSS

  1. node.js syntax checker bug about shadowing in private fields

    node.js syntax checker bug about shadowing in private fields2026-06-24 · ChrisFinally understood an issue I was encountering, that in my opinion is a bug and super confusing and deceptive.SyntaxError: Private field must be declared in an enclosing class The gist is the following: let's say you declared a class and have a private field (#somePrivateMethod) there.class Example { #somePrivateMethod(param1) {} } node --check reports 👌 so all good so far.The issue arises when you write a very…

    0