React 17 support is broken in 2.57.0 build #6677
Labels
Sev 2
Aspects of design is broken and impedes users in a significant way, but has workaround.
type: bug 🐛
Something isn't working
Package
Carbon for IBM Products
Description
We've noticed that React 17 support is broken in the latest build.
There are a couple of unit tests we have with Enzyme and when we render a component we get the following error
TypeError: React.useInsertionEffect is not a function
.Similar to #6672, the stack trace shows that the
framer-motion
is callingReact.useInsertionEffect
which is not part of the React 17 API.Stack trace is as follows
When we revert back to
2.56.1
everything works as expected.Looking at
framer-motion
package it looks like 6.5.1 is the last version which is supported for React 17Component(s) impacted
Any component which depends on
framer-motion
Browser
No response
@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version
2.57.0
Suggested Severity
Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround.
Product/offering
Cloud Pak for Integration
CodeSandbox or Stackblitz example
n/a
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: