-
Notifications
You must be signed in to change notification settings - Fork 160
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
[DOMPurify] Gatsby production build fails after @carbon/ibmdotcom-react v1.8.0 #4156
Comments
Hi @bkfrye , thank you for your issue report! Adding @kennylam here as he took a look at the issue, and believe it may have been introduced by an unrelated component from the
or
cc: @raphaelamadeu |
Seems that plugins: [
new webpack.IgnorePlugin(/canvas/)
] |
Detailed description
When running
gatsby build
with the @carbon/ibmdotcom-react package >v1.8.0, the build will fail. Output is below.This issue occurs when any ibmdotcom-react component is added and there are no instances of canvas elements being used. Expected outcome should be a successful Gatsby production build. This works as expected up to v1.8.0, but any releases after that version result in the failed production build.
This has been a common issue since the release of v1.9.0 and has interrupted the agencies workflow (Centerline Digital) for producing pages for multiple business units within IBM. We have been limited to using v1.8.0 with manual updates to match the latest releases, but this has become cumbersome.
Steps to reproduce the issue
@carbon/ibmdotcom-react
<Masthead />
or<DotcomShell />
gatsby build
Additional information
The text was updated successfully, but these errors were encountered: