Array undefined Context #14034
-
My Context.Provider works in Nextjs plain JavaScript projects but the same project converted to TypeScript is not working the array I need from the context is in the TypeScript project undefined, anyone an idea why? In both projects, the provider is in the same place in _app.js/ts |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Could you share some code of it working and the TypeScript version that is not working? |
Beta Was this translation helpful? Give feedback.
-
The issue is with trying to access the context within your There is some more info in their README on a work around. |
Beta Was this translation helpful? Give feedback.
The issue is with trying to access the context within your
react-konva
Stage
wrapper intools/ImageMapGenerator/MainStage.tsx
. Once I removed<Stage>
I was able to access the context values.There is some more info in their README on a work around.