Hi Bokeh Community
I’m trying to build a Bokeh extension for VegaFusion here MarcSkovMadsen/panel-vegafusion.
The current branch can be explored via https://github.com/MarcSkovMadsen/panel-vegafusion/tree/0e4f5ab63d4b4231515449442e497cb8e3bf535d.
To build the Bokeh extension I need to include the vegafusion-wasm - npm package. It includes a .wasm
module. You can inspect all files here UNPKG - vegafusion-wasm.
Unfortunately I cannot bokeh build
the extension as I get an unsupported extension
error?
How do I bokeh build
this extension?
Exception
jovyan@jupyter-marcskovmadsen-2dpanel-2dvegafusion-2d7y6mmeo2:~/src/panel_vegafusion$ bokeh build
Working directory: /home/jovyan/src/panel_vegafusion
New development environment. Running npm install.
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm WARN [email protected] No description
added 122 packages from 94 contributors and audited 122 packages in 18.04s
4 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Using /home/jovyan/src/panel_vegafusion/tsconfig.json
Compiling styles
Compiling TypeScript (3 files)
Linking modules
Error: unsupported extension of /home/jovyan/src/panel_vegafusion/node_modules/vegafusion-wasm/vegafusion_wasm_bg.wasm
at /srv/conda/envs/notebook/lib/python3.7/site-packages/bokeh/server/static/js/compiler.js:170912:31
at Linker.new_module (/srv/conda/envs/notebook/lib/python3.7/site-packages/bokeh/server/static/js/compiler.js:170914:15)
at Linker.resolve (/srv/conda/envs/notebook/lib/python3.7/site-packages/bokeh/server/static/js/compiler.js:171055:37)
at Linker.link (/srv/conda/envs/notebook/lib/python3.7/site-packages/bokeh/server/static/js/compiler.js:170637:36)
at build (/srv/conda/envs/notebook/lib/python3.7/site-packages/bokeh/server/static/js/compiler.js:169312:50)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async main (/srv/conda/envs/notebook/lib/python3.7/site-packages/bokeh/server/static/js/compiler.js:203:32)
Reproduce on Binder
- open https://mybinder.org/v2/gh/MarcSkovMadsen/panel-vegafusion/0e4f5ab63d4b4231515449442e497cb8e3bf535d?urlpath=lab
- open a terminal
- run
cd src/panel_vegafusion
andbokeh build