-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prerequisites for running examples locally - including extra steps for M1 Mac (Apple silicon) #5689
Comments
Thank you for sharing the instructions of bootstrapping on M1. It would be great if you can open a PR and add it to https://github.com/visgl/deck.gl/blob/master/CONTRIBUTING.md#troubleshooting |
I tried to replicate the browser error but I was not able to. Before running the bootstrap and installing the dependencies needed for the bootstrap to successfully finish, I remember this browser error occurring pretty consistently. I found it also strange, and this is why I started to play around with the project itself, and tried For the record, I tried the pure-js and the react Mapbox examples. Now I deleted the whole directory and cloned it from scratch but the error did not appear. I am not familiar at all with the innings of deck.gl, but I find it really strange that installing the depnedencies (I mean os level dependencies) and Maybe this is totally unrelated, and I was just being lame, but I do not know how I can screw up with running The browser error did appear both in safari and brave. I have even installed a pure ubuntu in a virtual machine to try to reproduce this to no avail. So I guess it was some strange coincidence on my end. I will go on and create the PR for the M1 Mac related steps. |
FWIW the only thing that |
I have created the pull request. Reading the documentation I still think it would be helpful to add some more guide on installing os level dependencies. PythonFor example on Ubuntu 21.04 (a totally clean one) after installing node, npm and yarn,
Installing Dependencies for buildRight now for me the only possible way for installing all dependencies was trial and error.
This is that I found to be needed on ubuntu 21.04. Of course other distors might need slightly different packages, but this would be a good start to include. |
The headless-gl dependencies are listed in https://github.com/stackgl/headless-gl#system-dependencies |
Link
https://github.com/visgl/deck.gl/blob/master/docs/get-started/getting-started.md
Description
Generally, I experienced buggy examples if
yarn bootstrap
was not run in the root of the deck.gl before compiling any example project.The symptom was that zooming stopped working after an error
variable _s is undefined
was thrown on the console.On linux running
yarn bootstrap
in the root directory solved the above issue, and it was quite straightforward to make it compile. The needed dependencies, however, should be stated in the documentation imho.On a Mac with an M1 chip, however,
yarn bootstrap
failed with the errorTo fix this, I did the following (found here):
The key for me was to run
And run
yarn bootstrap
like this:The text was updated successfully, but these errors were encountered: