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
Stack trace:
TypeError: Cannot read property 'callee' of null
Occurred while linting file
at Object.isDestructuredFromPragmaImport (/node_modules/eslint-plugin-react/lib/util/Components.js:348:33)
at Object.isPragmaComponentWrapper (node_modules/eslint-plugin-react/lib/util/Components.js:604:69)
We solved this by eliminating the props destructuring and using this.props.fowardedRef(this.ref) but this seems to be an issue with the package.
The text was updated successfully, but these errors were encountered:
I am seeing similar crash with eslint 7.6.0eslint-plugin-react 7.20.5:
at Object.isDestructuredFromPragmaImport (/node_modules/eslint-plugin-react/lib/util/Components.js:348:33)
at Object.isCreateElement (/node_modules/eslint-plugin-react/lib/util/Components.js:393:16)
at Object.isReturningJSX (/node_modules/eslint-plugin-react/lib/util/Components.js:467:47)
Getting this error TypeError: Cannot read property 'callee' of null when calling
forwardRef(this.ref)
Stack trace:
TypeError: Cannot read property 'callee' of null
Occurred while linting file
at Object.isDestructuredFromPragmaImport (/node_modules/eslint-plugin-react/lib/util/Components.js:348:33)
at Object.isPragmaComponentWrapper (node_modules/eslint-plugin-react/lib/util/Components.js:604:69)
We solved this by eliminating the props destructuring and using
this.props.fowardedRef(this.ref)
but this seems to be an issue with the package.The text was updated successfully, but these errors were encountered: