Closed fatalstar closed 1 year ago
I try to create a BlankView with "@itwin/desktop-viewer-react": "^3.1.1".
As readme file said, I give the viewer component these props: location={Cartographic.createZero()} extents={[[0, 0, 0], [200, 200, 200]]}
but it can't render, alert "Please provide a valid access token"
I find the BaseViewer.ts is the reason, seems like need a ViewerAuthorization.client. I try to change its value, but I still get the alert.
ps: I found the location and extents is not required in type, it's confusing.
I try to create a BlankView with "@itwin/desktop-viewer-react": "^3.1.1".
As readme file said, I give the viewer component these props: location={Cartographic.createZero()} extents={[[0, 0, 0], [200, 200, 200]]}
but it can't render, alert "Please provide a valid access token"
I find the BaseViewer.ts is the reason, seems like need a ViewerAuthorization.client. I try to change its value, but I still get the alert.
ps: I found the location and extents is not required in type, it's confusing.