mapbox / mapbox-gl-draw

Draw tools for mapbox-gl-js
https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
ISC License
942 stars 590 forks source link

mapbox-gl-draw: $yarn start, getting error in browser with sample project. #859

Closed SoftShit closed 4 years ago

SoftShit commented 5 years ago

mapbox-gl-js version: latest checked out from github mapbox-gl-draw version: latest checked out from github

Steps to Trigger Behavior

 1. $git clone https://.../mapbox-gl-draw
 2. $cd mapbox-gl-draw
 3. $yarn install
4.  $yarn start

Expected Behavior

I should be able to go to a web browser and see the sample project on:

Actual Behavior

I get this in the browser: Cannot GET /

View source:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /</pre>
</body>
</html>

Any help getting this sample project going would be appreciated.

andrewharvey commented 5 years ago

See under the README https://github.com/mapbox/mapbox-gl-draw#developing-and-testing you'll need to visit http://localhost:9967/debug/?access_token=<token>