beakerx icon indicating copy to clipboard operation
beakerx copied to clipboard

js/lab fails to build with Jupyter Lab 1.2.9 + master

Open 0xg0nz0 opened this issue 4 years ago • 0 comments

I am trying to do a local build in my Dockerfile to pull in beakerx 1.5.0, and while the beakerx modules all work, the labextension fails to build with an error about a bad reference to ../lib/tree.js in dist.

WORKDIR /app/beakerx/js/lab
RUN jupyter labextension install . --no-build

WORKDIR /app/beakerx/js/lab-theme-dark
RUN jupyter labextension install . --no-build

WORKDIR /app/beakerx/js/lab-theme-light
RUN jupyter labextension install . --no-build

RUN jupyter lab build

The error is below:

[LabBuildApp] > node /usr/local/lib/python3.8/site-packages/jupyterlab/staging/yarn.js run build:dev:minimize [LabBuildApp] yarn run v1.15.2 $ jlpm run build:dev $ jlpm run build $ webpack ModuleNotFoundError: Module not found: Error: Can't resolve '../lib/tree.js' in '/usr/local/share/jupyter/lab/staging/node_modules/beakerx-jupyterlab/dist'

0xg0nz0 avatar Apr 13 '20 16:04 0xg0nz0