For our current project, we followed this tutorial to integrate Forge Viewer into Sharepoint. (https://aps.autodesk.com/blog/sharepoint-online-integration)
Then we set up the project in React using this npm package. https://www.npmjs.com/package/react-forge-viewer.
After migrating the project to React, the viewer lost all color and turned black.
According to the error message, the property is still undefined when the viewer is loaded. This problem did not occur when using only SPFX, only after using React.
Thank you very much for your help!
Error message
Colorless Viewer
Looks like the (community developed)react-forge-viewerproject has not been updated in the past 3 years. To rule out any issues in this project, I recommend replacing it with your own simple React wrapper. Something like the following:
component into your application.If the problem persists even with this simple React component, try using the component in a standalone React application to rule out any potential issues introduced by the Sharepoint environment.