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
Oops! Something went wrong! :(
ESLint: 7.13.0
RangeError: Maximum call stack size exceeded
Occurred while linting /home/developer/work/sapi/qubist/metalab-cloud-service/assets/js/shared/component/partial/ProfileFlyoutV2/ProfileFlyoutV2.jsx:97
at Array.join (native)
at iterateProperties (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:445:55)
at iterateProperties (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:65:7)
at buildReactDeclarationTypes (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:443:11)
at buildReactDeclarationTypes (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:458:25)
at iterateProperties (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:446:29)
at iterateProperties (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:65:7)
at buildReactDeclarationTypes (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:443:11)
at buildReactDeclarationTypes (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:458:25)
at iterateProperties (/home/developer/work/sapi/qubist/metalab-cloud-service/node_modules/eslint-plugin-react/lib/util/propTypes.js:446:29)
ProfileFlyoutV2.jsx lines 88-103
constprojectType=PropTypes.shape({id: PropTypes.string.isRequired,name: PropTypes.string.isRequired,});constnodesType=PropTypes.arrayOf(PropTypes.shape({project: projectType,children: nodesType}),);ProjectNode.propTypes={// line 97 where the error occursproject: projectType.isRequired,nodes: nodesType,depth: PropTypes.number.isRequired,setActiveProject: PropTypes.func.isRequired,activeProject: projectType,};
The text was updated successfully, but these errors were encountered:
However, I'm pretty sure recursive propTypes like that don't actually work in production - because nodesType is an error until it's finished being assigned, so I think your code is just wrong.
ljharb
added a commit
to ljharb/eslint-plugin-react
that referenced
this issue
Feb 22, 2022
Environment Info:
Command Run
Output
ProfileFlyoutV2.jsx lines 88-103
The text was updated successfully, but these errors were encountered: