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.

schedulePassiveEffects is not a function

See original GitHub issue

Describe the bug On the latest version of this lib and latest React+React DOM I got an error:

Uncaught TypeError: schedulePassiveEffects is not a function
    at react-reconciler.development.js:10959
    at Object.unstable_runWithPriority (scheduler.development.js:255)
    at commitRoot (react-reconciler.development.js:10958)
    at react-reconciler.development.js:12401
    at Object.unstable_runWithPriority (scheduler.development.js:255)
    at completeRoot (react-reconciler.development.js:12400)
    at performWorkOnRoot (react-reconciler.development.js:12329)
    at performWork (react-reconciler.development.js:12237)
    at performSyncWork (react-reconciler.development.js:12211)
    at requestWork (react-reconciler.development.js:12080)
    at scheduleWork (react-reconciler.development.js:11894)
    at scheduleRootUpdate (react-reconciler.development.js:12555)
    at updateContainerAtExpirationTime (react-reconciler.development.js:12583)
    at Object.updateContainer (react-reconciler.development.js:12640)
    at Object.updateContainer (react-pdf.browser.es.js:5432)
    at InternalBlobProvider.renderDocument (react-pdf.browser.es.js:5562)
    at InternalBlobProvider.componentDidMount (react-pdf.browser.es.js:5549)
    at commitLifeCycles (react-dom.development.js:17334)
    at commitAllLifeCycles (react-dom.development.js:18736)
    at HTMLUnknownElement.callCallback (react-dom.development.js:149)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:199)
    at invokeGuardedCallback (react-dom.development.js:256)
    at commitRoot (react-dom.development.js:18948)
    at react-dom.development.js:20418
    at Object.unstable_runWithPriority (scheduler.development.js:255)
    at completeRoot (react-dom.development.js:20417)
    at performWorkOnRoot (react-dom.development.js:20346)
    at performWork (react-dom.development.js:20254)
    at performSyncWork (react-dom.development.js:20228)
    at requestWork (react-dom.development.js:20097)
    at scheduleWork (react-dom.development.js:19911)
    at Object.enqueueSetState (react-dom.development.js:11169)
    at Connect../node_modules/react/cjs/react.development.js.Component.setState (react.development.js:335)
    at Connect.onStateChange (connectAdvanced.js:205)
    at Object.notify (Subscription.js:23)
    at Subscription.notifyNestedSubs (Subscription.js:62)
    at Connect.onStateChange (connectAdvanced.js:202)
    at Object.notify (Subscription.js:23)
    at Subscription.notifyNestedSubs (Subscription.js:62)
    at Connect.onStateChange (connectAdvanced.js:202)
    at Object.notify (Subscription.js:23)
    at Subscription.notifyNestedSubs (Subscription.js:62)
    at Connect.onStateChange (connectAdvanced.js:202)
    at Object.notify (Subscription.js:23)
    at Subscription.notifyNestedSubs (Subscription.js:62)
    at Connect.onStateChange (connectAdvanced.js:202)
    at Object.notify (Subscription.js:23)
    at Subscription.notifyNestedSubs (Subscription.js:62)
    at Connect.onStateChange (connectAdvanced.js:202)
    at Object.dispatch (redux.js:214)

and then next error says:

The above error occurred in the <InternalBlobProvider> component:
    in InternalBlobProvider
    in PDFDownloadLink (created by XXX)

It’s related with lib react-reconciler but I can’t understand why this causes error. @react-pdf/renderer uses this as dependency but I searched SO and I found topic where they said react-reconciler@above 0.19 should have schedulePassiveEffects function.

Any ideas?

Versions Latest @react-pdf/renderer, React, React-DOM

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
0FilipKcommented, Apr 15, 2019

I’ll try to prepare a demo with with error soon

0reactions
diegomuracommented, Jul 31, 2019

Hey. I’ll review it and once merged I can do a release. Thanks for the PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

create is not a function using useEffect React Hook with AJAX ...
It's because no callback function is being passed into useEffect . In the example above, it is actually executing the fetch request which ......
Read more >
How to use the react-reconciler function in react-reconciler
To help you get started, we've selected a few react-reconciler examples, based on popular ways it is used in public projects. Secure your...
Read more >
ميډياويکي:Vector-opt-out - ويکيپېډيا
When a function is provided to setState, it will be called at some point in * the future (not synchronously). It will be...
Read more >
Use unhideInstance in Playwright Internal With Examples ...
Learn how to use unhideInstance function in Playwright Internal framework for your next JavaScript automation project with LambdaTest Automation Testing ...
Read more >
@react-pdf/renderer - NPM Package Compare versions - Socket
var createRenderer = function createRenderer(_ref) { ... You're either using this method in a browser, or your bundler is not loading react-pdf from...
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