react-konva seems incompatible with latest konva
See original GitHub issueHi, I’m trying to build my app with latest react-konva and konva. I’m using yarn pnp and below are the errors I get. I think this occurs since konva added exports to package.json.
Module not found: Error: Package path ./lib/Core is not exported from package /path/to/.yarn/cache/konva-npm-8.2.0-e1228b8671-243bb01d38.zip/node_modules/konva/ (see exports field in /path/to/.yarn/cache/konva-npm-8.2.0-e1228b8671-243bb01d38.zip/node_modules/konva/package.json)
Module not found: Error: Package path ./lib/Global is not exported from package /path/to/.yarn/cache/konva-npm-8.2.0-e1228b8671-243bb01d38.zip/node_modules/konva/ (see exports field in /path/to/.yarn/cache/konva-npm-8.2.0-e1228b8671-243bb01d38.zip/node_modules/konva/package.json)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
click event missing in objects of a draggable Konva stage
I am using react-konva, and found that the onClick event does not trigger when the Stage has its draggable property true.
Read more >Getting started with react and canvas via Konva
Currently, react-konva is not supported in the React Native environment. Currently you can use all Konva nodes and shapes as React components and...
Read more >Drag and drop canvas shapes - Konva
It is related to react-konva node updates logic. You have two ways: 1. Limit position of node itself first, then update state https://codesandbox.io/s/re......
Read more >HTML5 Canvas All Konva performance tips list
Use shape.listening(false) - as with layers (see point 7 above), Konva looks out for when events should be triggered for shapes, which has...
Read more >konvajs/konva - Gitter
Types of parameters 'item' and 'item' are incompatible. Type 'Node<NodeConfig>' is missing the following properties from type 'BaseLayer': canvas, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nice, thanks for the workaround! However, I opened the ticket because react-konva is not working with the latest version of konva (but it claims to be)…
8.2.1 works.