question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-konva seems incompatible with latest konva

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mruosscommented, Sep 24, 2021

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)…

0reactions
mruosscommented, Sep 24, 2021

8.2.1 works.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found