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-reconciler failing when using react-konva

See original GitHub issue

I’m trying to use react konva in one of my projects but unfortunately it fails with the following error in the development version.

react-reconciler.development.js?dbf7:497 Uncaught TypeError: Cannot set property 'getCurrentStack' of undefined
    at Object.setCurrentFiber (react-reconciler.development.js?dbf7:497)
    at performUnitOfWork (react-reconciler.development.js?dbf7:6007)
    at workLoop (react-reconciler.development.js?dbf7:6074)
    at HTMLUnknownElement.callCallback (react-reconciler.development.js?dbf7:1613)
    at Object.invokeGuardedCallbackDev (react-reconciler.development.js?dbf7:1652)
    at invokeGuardedCallback (react-reconciler.development.js?dbf7:1509)
    at renderRoot (react-reconciler.development.js?dbf7:6152)
    at performWorkOnRoot (react-reconciler.development.js?dbf7:6800)
    at performWork (react-reconciler.development.js?dbf7:6753)
    at requestWork (react-reconciler.development.js?dbf7:6664)

The easiest way to reproduce it for me was to: #1 install the react webpack typescript starter kit from https://github.com/vikpe/react-webpack-typescript-starter #2 Add the ColoredRect example from https://github.com/lavrton/react-konva into my app.tsx #3 Start the dev build. (npm run start-dev)

Some additional things:

  • It works on the prod build (npm run start-prod)
  • I did try it on React 15 & 16.2 & 16.3
  • Konva rect version: 1.7.1
  • Konva version: 2.0.2

Looking at the place it fails it seems that in the dev version of the react-reconciler resolved this call to undefined: var ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame;

While this is failing in the react-reconciler, I’m still wondering if this is because of the usage of the react-reconciler library within Konva, as it works in the prod version.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ghandiccommented, Nov 1, 2020

I’m having similar issues, even when upgrading react, react-dom, konva, and react-konva

0reactions
lavrtoncommented, Nov 9, 2020

Probably we should add the more explicit warning because looks like npm warnings are not enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failing that did work? - Netlify Support Forums
Web site created using create-react-app. It works locally, the previous deploy works so I wondering what might have changed on Netlify.
Read more >
React Konva Transformer Error "Cannot read property ...
I'm using Konva 4.0.18 within a React 16.8. Application, which works well so far in the Standalone (CRA). When integrating this working ...
Read more >
react-konva | Yarn - Package Manager
React Konva is a JavaScript library for drawing complex canvas graphics using React. It provides declarative and reactive bindings to the Konva Framework....
Read more >
Typeerror: Fiber Is Undefined (React-Konva + Rollupjs)
react-reconciler failing when using react-konva. 2021-01-09 19:21:45. <div><p>I'm trying to use react konva in one of my projects but unfortunately it fails ...
Read more >
How to draw images on canvas with React? - Konva
When i try to use fillpatternimage property to use as a background image for the canvas i am unable to it. I get...
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