iTwin / viewer

Monorepo that contains the iTwin Viewer npm packages and their related packages
MIT License
25 stars 16 forks source link

Can not create a blank view in desketop viewer app #286

Closed fatalstar closed 1 year ago

fatalstar commented 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. image