-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Module Parse Error in WorkerJob Class: Unexpected Token in @loaders.gl/worker-utils #2593
Comments
@igorDykhta Could it be |
I'll check. I have a different issue on my side, but related to loaders.gl as well. The fork works with the same yarn version. @ibgreen i see that there is a special rule added by @lixun910 for @probe.gl in kepler.gl-jupyter
|
@DanielLanghann Could you try running |
I'm using yarn 1.22.19 on my machine. |
@igorDykhta First, thank you for your help! I cloned the repository to have a fresh start, switched to branch |
Same here |
Hi, i've also tried to get this repo running locally somehow but always failed so far. I've checked out
# This file contains the result of Yarn building a package (gl@npm:6.0.2)
# Script name: install
prebuild-install warn install No prebuilt binaries found (target=20.12.0 runtime=node arch=x64 libc= platform=linux)
gyp info it worked if it ends with ok
gyp info using node-gyp@9.4.1
gyp info using node@20.12.0 | linux | x64
gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/wsl2development/others/kepler.gl/node_modules/gl/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/wsl2development/others/kepler.gl/node_modules/gl/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/wsl2development/others/kepler.gl/node_modules/gl/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.cache/node-gyp/20.12.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/20.12.0',
gyp info spawn args '-Dnode_gyp_dir=/wsl2development/others/kepler.gl/node_modules/gl/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/20.12.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/wsl2development/others/kepler.gl/node_modules/gl',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
Package xi was not found in the pkg-config search path.
Perhaps you should add the directory containing `xi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xi' found
gyp: Call to 'pkg-config --libs-only-L --libs-only-other x11 xi xext' returned exit status 1 while in angle/src/angle.gyp. while loading dependencies of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/wsl2development/others/kepler.gl/node_modules/gl/node_modules/node-gyp/lib/configure.js:325:16)
gyp ERR! stack at ChildProcess.emit (node:events:518:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 5.15.153.1-microsoft-standard-WSL2
gyp ERR! command "/root/.nvm/versions/node/v20.12.0/bin/node" "/wsl2development/others/kepler.gl/node_modules/gl/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /wsl2development/others/kepler.gl/node_modules/gl
gyp ERR! node -v v20.12.0
gyp ERR! node-gyp -v v9.4.1
gyp ERR! not ok
I'am using stable yarn (4.3.1) by default but also tried with yarn 3.8.3 and 1.22.22 (yarn classic) with the same result. |
@Devidian, this looks like a separate issue. @DanielLanghann I have a fix. But I need to polish it a bit. Wll public PR soon. |
I am willing to take a look if there are loaders.gl specific issues. However @heshan0131 is in the process of modernizing the entire kepler build system so let's make sure we frame any bugs against the latest setups. |
@Devidian I could reproduce it in WSL. You need to install missed GL dependencies https://github.com/stackgl/headless-gl?tab=readme-ov-file#system-dependencies |
@mars-dlx I tried your "fix-webpack-builds" branch directly and at least for the demo-app which I had been trying to run so far (with the errors like @DanielLanghann was seeing) - it worked wonderfully. Thanks! :) |
demo-app is upgraded to esbuild in latest alpha release. The following commands
launch demo-app as expected. |
Describe the bug
When i run
yarn start
i got among others this error:I attached the entire list of errors:
stack_trace_kepler.txt
To Reproduce
Steps to reproduce the behavior:
I work on MacOS (14.4.1).
and use Node: v18.18.2 (I also tried newer versions)
yarn global add puppeteer
yarn bootstrap
export MapboxAccessToken=<insert_my_token>
yarn start
Now i got the attached Error Trace.
Additional context
Can anyone give me a hint on how to get Kepler running locally?
I tried working through the errors one by one, but no matter what I did, I kept having compatibility issues and was unable (for the past two days) to run the app.
We also tried running the steps on an Ubuntu machine and launching the app in Docker.
Also tried newer Versions of Node.
Thank you in advance for your feedback. WR Daniel
The text was updated successfully, but these errors were encountered: