Karolis Stulgys
06/21/2022, 12:26 PM@serverless-stack/static-site-env
to frontend and @sls-next/lambda-at-edge
to root I get this nonsens error when I run yarn start (backend) and yarn dev (frontend). I have latest deps, node v16.15.1, using yarn
TypeError: Cannot read properties of null (reading 'useContext')
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 'useContext')
Adrian Schweizer
06/21/2022, 2:16 PMAdrian Schweizer
06/21/2022, 2:32 PMKarolis Stulgys
06/21/2022, 3:34 PMnpm
Karolis Stulgys
06/21/2022, 3:50 PMKarolis Stulgys
06/21/2022, 3:50 PMKarolis Stulgys
06/21/2022, 4:00 PMFrank
npm
r u using. npm
8 also has support workspaces and hoists the node_modules
. I wonder if that works for u.Karolis Stulgys
06/22/2022, 12:21 PMFrank