React + Canvas = Love. JavaScript library for drawing complex canvas graphics using React.
5.8k
stars
260
forks
source link
TypeError: ReactSharedInternals is undefined when using react-konva with Next.js 15 and React 18 #817
Closed
saskiaclassic closed 2 weeks ago
Hello guys, I want to try out with react-kova but I get this issue.
I created a new project with the following dependencies:
"dependencies": { "konva": "^9.3.16", "next": "15.0.3", "react": "18.2", "react-dom": "18.2", "react-konva": "^18.2.10" }
Setup:
Project Structure and Components:
I'm using react-konva to render a simple Canvas component that displays a circle.
Code
page.tsx
:Code
Canvas.tsx
(in component-folder):Problem:
When running the project, the following error appears in the browser:
...
Troubleshooting Attempts:
Question:
Has anyone encountered similar issues with react-konva and Next.js 15 or React 18, or is there a known fix for this error?