Esri / Esri/calcite-react

action-bar in arcgis cli gives global is not defined

Open
#402 2 comments 0 reactions 1 assignee Claimed by @codylawson View on GitHub
Dominant language
JavaScript
Stars
51
Forks
13
PR merge metrics
No merged PRs in 30d

Description

## Expected Behavior
Empty ActionBar in the screen
## Current Behavior
Completely white screen in the browser

## Steps to Reproduce (for bugs)

steps to reproduce:
run the arcgis cli (version 4.16.0)
arcgis create jsapi-react-app -t react

install the calcite-react components (version (0.54.0)
npm install calcite-react

in src/index.tsx
add import ActionBar from 'calcite-react/ActionBar';
add in render function

Note: this is the minimal implementation of the ActionBar resulting in an error. Adding ActionGroups, Actions and the required icons ends up in the same error message

Result in browser:
Empty screen
console error: global is not defined
## Context + Screenshots

## Your Environment

* Version used:
Calcite-react 0.54.0
Arcgis-cli: 4.16.0

* Browser Name and version:
Chrome 85.0.4183.83
Edge 85.0.564.41
Freifox 80.0

* Operating System and version (desktop or mobile):
Windows 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.