-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Components from ibm-products library fail to render on serverside on Node v22 #6882
Comments
I did look at the existing issues in the #4185 #6201 |
Also important to mention is, we're asked to upgrade to Node v22 because v20 has security vulnerabilities, and Node v20 is now in maintenance mode. |
On the ibm-products slack channel, I also did find this thread: https://ibm-analytics.slack.com/archives/C013ZTX0N6B/p1732703674757719 This seems to be someone who found the same problem but this was a few months ago.. The most recent comments on that thread was that there wasn't much the If that 6201 issue to decouple the |
We are working on it and it should be available in an upcoming release. #6434 should be the last issue to fully remove it. |
We have the same issue. Our SSR is now broken because of this. |
Package
Carbon for IBM Products
Description
Using the latest
@carbon/ibm-products
package, I upgraded our NodeJS fromv20.18.0
tov22.13.1
and all components from this ibm-products library fails to render on the server side.Note that they are working fine in nodeJS v20, but failing in v22.
Specifically, our web application only uses
Tearsheet
,SidePanel
, andEditInPlace
components from theibm-products
library. Once i start up our application and try to render a page, the server side render fails with adocument is not defined
error.Here is the stack trace:
All 3 of these components throw the same error. So from what I can tell,
Tearsheet
,SidePanel
, andEditInPlace
imports/inherits/usesCoachmarkOverlayElements
->SteppedAnimatedMedia
->lottie
/lottie-web
, which thelottie
library seems to be the source of the crash error based on the stack trace.. I assume all components from the ibm-products library (or at least, all components who also import/use these shared libraries) are also affected.I narrowed it down by commenting out all the import and rendering of
@carbon/ibm-products
related components.. and then the server side rendering succeeded and started working as normal. So this is proof and evidence that the root cause of the problem is here.For example, if components has something like:
and then i commented out ONLY components from
ibm-products
library, like:Then I rebuild our application and start.. and everything starts working again. Both server side rendering and rendering on the browser runs normally.
Component(s) impacted
In our product, we only use
Tearsheet
,SidePanel
, andEditInPlace
components from the@carbon/ibm-products
library, and it's affecting all 3 of these components for sure. But I'm assuming it affects all components from the ibm-products library that import/uselottle
/lottie-web
(which is used in theSteppedAnimatedMedia
)..Browser
Chrome
@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version
2.59.0
Suggested Severity
Severity 1 = The design is broken in a critical way that blocks users from completing tasks or damages the brand. Affects major functionality, no workaround.
Product/offering
Data Replication
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: