Recently came across an issue using riteway from the context of a next.js app. Below is a stack-trace showing the specifics.
npm run test
> nextjs-app@1.0.0 test
> riteway -r @babel/register 'source/index.test.js' | tap-nirvana
renderComponent
Warning: 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.
✖ TypeError: Cannot read properties of null (reading 'useRef')
----------------------------------------------------------------
operator: deepEqual
diff:
source: at _callee$ (/nextjs-app/source/features/LandingPage/component.test.js:6:13)
passed: 0, failed: 1 of 1 tests (558ms)
I wasn't making use of hooks yet, so I could rule that out and move on to checking the versions my project had installed. This led me seeing that riteway had a react-dom version that conflicted with my project.
Recently came across an issue using riteway from the context of a next.js app. Below is a stack-trace showing the specifics.
I wasn't making use of hooks yet, so I could rule that out and move on to checking the versions my project had installed. This led me seeing that riteway had a react-dom version that conflicted with my project.