lukastaegert/eslint-plugin-tree-shaking

Error "x" breaking the linter

aczekajski opened this issue · 2 comments

I got this very non-informative error:

null
Error: x
    at verifyNodeTypeIsKnown ([...]\no-side-effects-in-initialization.js:1015:13)

I've checked when it blew up and it was this line of code (written in TS):

class ActionMenu extends React.Component<ActionMenuProps, ActionMenuState> {
   // ...
   private boxRef?: HTMLDivElement; // HERE
   // ...
}

Thanks for the issue, fix at #57

🎉 This issue has been resolved in version 1.7.4 🎉

The release is available on:

Your semantic-release bot 📦🚀