Skip to content

In create-react-app v2 initialization throws Uncaught ReferenceError: _typeof is not defined #7354

Closed
@maciekmp

Description

@maciekmp

Fresh app installation with create react app v2 and mapbox was added as first extra package. After run app in browser all I get in console is:

Uncaught ReferenceError: _typeof is not defined

mapbox-gl-js version: 0.49

browser: Google Chrome

Steps to Trigger Behavior

  1. yarn create react-app mapbox-app
  2. cd mapbox-app
  3. yarn add mapbox-gl
  4. Add Mapbox initialization code in componentDidMount
  5. yarn start

Expected Behavior

Display functional map container. Work without errors in console.

Actual Behavior

Display only canvas with solid background and get Uncaught ReferenceError: _typeof is not defined in console few times.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions