Hi, I've implemented GoodData with react 18.3.1, h...
# gooddata-ui
d
Hi, I've implemented GoodData with react 18.3.1, however when using the gooddata packages we get a lot of errors about using react.createRoot instead of ReactDOM.render "@GoodData Linen/api-client-tiger": "^10.7.0", "@GoodData Linen/sdk-backend-tiger": "^10.7.0", "@GoodData Linen/sdk-ui-charts": "^10.7.0", "@GoodData Linen/sdk-ui-dashboard": "10.7.0", "@GoodData Linen/sdk-ui-ext": "^10.7.0", "@GoodData Linen/sdk-ui-geo": "^10.7.0", "@GoodData Linen/sdk-ui-pivot": "^10.7.0", BackendProvider backend={backend} WorkspaceProvider workspace={workspaceId}{children}/WorkspaceProvider /BackendProvider Is one of the providers using the old depcreated way of rendering react ?
j
Hi David, Firstly, have you added the code from the below docs into the root of your application before
createRoot
is called? https://www.gooddata.com/docs/gooddata-ui/9.3/architecture/migration_guide/#MigrationfromVersion8.x-React18
d
Yeah that works, thanks. I feel like it would be useful if mentioned somewhere here, instead of going to older documentation 🙂 https://www.gooddata.com/docs/gooddata-ui/latest/references/dashboard_component/
m
+1 to adding that to the dashboard docs - I've had the same problem and didn't know to go look at the 8.x migration guide.
d
Our bitbucket pipeline no longer deploys after I added the good data package to our project. I get these issues when I run npm run build @GoodData Linen/sdk-ui-kit/styles/images/visualization-types/combo2-active.svg referenced in ProjectPath/node_modules/@gooddata/sdk-ui-kit/styles/css/main.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
Ok, the issue was that the bitbucket docker ran out of memory. Increasing it let the docker build properly again.
j
Thank you both for your feedback. I will definitely highlight this to our documentation team.
👍 2