Skip to content

jupyter lab build fails due to missing de-indent module #98

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

Open
giswqs opened this issue Feb 23, 2025 · 0 comments
Open

jupyter lab build fails due to missing de-indent module #98

giswqs opened this issue Feb 23, 2025 · 0 comments

Comments

@giswqs
Copy link

giswqs commented Feb 23, 2025

Commands to reproduce the error

uv venv
uv pip install jupyterlab ipyvue
uv run jupyter lab build

Error messages

[LabBuildApp] > node /home/qiusheng/Downloads/.venv/lib/python3.13/site-packages/jupyterlab/staging/yarn.js run build:prod:minimize
[LabBuildApp] [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve 'de-indent' in '/home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/@mariobuikhuizen/vue-compiler-addon/dist'
    at /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/webpack/lib/Compilation.js:2109:28
    at /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:908:13
    at eval (eval at create (/home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)
    at /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:333:22
    at eval (eval at create (/home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)
    at /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:512:22
    at /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:150:10
    at /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:775:25
    at /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:992:8
    at /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:1121:5
resolve 'de-indent' in '/home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/@mariobuikhuizen/vue-compiler-addon/dist'
  Parsed request is a module
  using description file: /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/@mariobuikhuizen/vue-compiler-addon/package.json (relative path: ./dist)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/@mariobuikhuizen/vue-compiler-addon/dist/node_modules doesn't exist or is not a directory
      /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/@mariobuikhuizen/vue-compiler-addon/node_modules doesn't exist or is not a directory
      /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/@mariobuikhuizen/node_modules doesn't exist or is not a directory
      /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/node_modules doesn't exist or is not a directory
      looking for modules in /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules
        single file module
          using description file: /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/package.json (relative path: ./node_modules/de-indent)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/de-indent doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/de-indent.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/de-indent.json doesn't exist
            .wasm
              Field 'browser' doesn't contain a valid alias configuration
              /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/de-indent.wasm doesn't exist
        /home/qiusheng/Downloads/.venv/share/jupyter/lab/staging/node_modules/de-indent doesn't exist
      /home/qiusheng/Downloads/.venv/share/jupyter/lab/node_modules doesn't exist or is not a directory
      /home/qiusheng/Downloads/.venv/share/jupyter/node_modules doesn't exist or is not a directory
      /home/qiusheng/Downloads/.venv/share/node_modules doesn't exist or is not a directory
      /home/qiusheng/Downloads/.venv/node_modules doesn't exist or is not a directory
      /home/qiusheng/Downloads/node_modules doesn't exist or is not a directory
      /home/qiusheng/node_modules doesn't exist or is not a directory
      /home/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory

[LabBuildApp] JupyterLab failed to build
[LabBuildApp] ERROR | Build failed.

Workaround

cd .venv/share/jupyter/lab/staging
npm install de-indent  
cd -  
uv run jupyter lab build

added 40 packages, removed 2 packages, changed 6 packages, and audited 1104 packages in 8s

156 packages are looking for funding
  run `npm fund` for details

32 vulnerabilities (5 low, 8 moderate, 19 high)

To address issues that do not require attention, run:
  npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
~/Downloads/.venv/share/jupyter/lab/staging
[LabBuildApp] JupyterLab 4.3.5
[LabBuildApp] Building in /home/qiusheng/Downloads/.venv/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (production, minimized)

Related issue: opengeos/leafmap#1037

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant