million
are you using?0.0.73
Netlify
npm
Mac
Arc
If I run npm run dev, the PR code that I'm reviewing works fine with no invalid hook call errors. If I run the dev server with Million lint, I get the following error:
Unhandled Runtime Error
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
126 | function CustomTick(_props6) {
127 | let _props3 = _props6;
> 128 | /*million ignore*/_captureProps2(1058525330072756, _props6, [98, 20, 98, 27], 0);
| ^
129 | /*million ignore*/_useMount2("/Users/nicktaylor/dev/work/app/components/Graphs/ContributorsChart.tsx", "CustomTick");
130 | let {
131 | x,
If you want to see the error in action:
gh clone open-sauced/app
gh co 3302
npm run install
npm run dev
.USE_MILLION_LINT=1 npm run dev
I have no idea why it's erroring out at the moment, but happy to help work on this if needed.
The Next.js dev server with Million Lint running loads the page instead of erroring out
https://stackblitz.com/~/github.com/open-sauced/app
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too