-
Bug
-
Resolution: Done
-
Blocker
-
1.9.0
-
None
-
2
-
False
-
-
False
-
Release Note Not Required
-
-
-
RHDH COPE 3284, RHDH COPE 3285, RHDH COPE 3286
Description of problem:
1 or more plugin builds have started failing recently due to missing react-dom dependency in their package.json / yarn.lock:
Errors Files
1 plugins/dynamic-home-page/src/components/EntitySection/EntityCard.test.tsx:19
1 plugins/dynamic-home-page/src/components/OnboardingSection/OnboardingCard.test.tsx:18
2 plugins/dynamic-home-page/src/components/OnboardingSection/OnboardingCard.tsx:17
1 plugins/dynamic-home-page/src/components/SearchBar.tsx:18
1 plugins/dynamic-home-page/src/components/TemplateSection/TemplateCard.test.tsx:17
...
Module not found: Error: Can't resolve 'react-dom' in '/var/workdir/source/workspaces/homepage/node_modules/@backstage/core-components/dist/components/FeatureDiscovery'
May be caused by changes I'm trying in RHIDP-9067 and RHIDP-10979
May need a global patch to includfe "react-dom": "^18" when we also include "@types/react-dom": "^18".
Several workspaces include types/react-dom as RESOLUTIONS but not react-dom itself as a peerdep or devdep.