iTwin / viewer

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

Text Missing when running generic application #256

Closed Michael-Tajmajer-Bentley closed 1 year ago

Michael-Tajmajer-Bentley commented 1 year ago

Followed instructions at: https://developer.bentley.com/tutorials/web-application-quick-start/

  1. Executed: npx create-react-app your-app-name --template @itwin/web-viewer --scripts-version @bentley/react-scripts

  2. Configured client id, etc.

  3. When executing in Chrome, text is missing in toolbars:

image

aruniverse commented 1 year ago

If you are using NPM as your package manager, try setting the following env var: USING_NPM=true

https://github.com/imodeljs/create-react-app/blob/imodeljs/packages/react-scripts/README-imodeljs.md#differences

This should help copy the localization files over which are required to display the text

Michael-Tajmajer-Bentley commented 1 year ago

Arun that solved it - this would be an excellent addition to the template!