1

Just updated react-dom to version 16.5.2, and all my tests have begun to fail dur to: requirejs error occurred TypeError: Cannot read property 'unstable_cancelScheduledWork' of undefined.

I didn't see any related errors on the release notes / any related issues using it so I assumed I've done something wrong..

When I comment import ReactDOM from 'react-dom' the test doesn't crash.. (doesn't pass either..)

Any ideas what could be done wrong?

2
  • Not sure this is related, but have you seen this? Commented Nov 5, 2018 at 8:30
  • 1
    @Tholle Very helpful!! I don't need to upgrade to 16.5.0 and above if I don't have time and scheduling dependency.. Do you want to make this as an answer? Commented Nov 5, 2018 at 8:36

1 Answer 1

1

As outlined by Brian Vaughn (React core team member) in this issue...

Yeah, the schedule dependency was added to react-dom in version 16.5.0. If you need to not depend on it for the time being, 16.4.2 would be a reasonable version to pin to.

... you can pin to e.g. 16.4.2 to mitigate this issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.