jupyterlab / extension-examples

JupyterLab Extensions by Examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when building react-widget

oscar6echo opened this issue · comments

Description

I tried to build the react-widget and it crashed with an obscure low level error.
I did it several times from scratch to be sure.

Details below.

Reproduce

Follow the sequence below - from the README:

[olivier]extension-examples [ main][ ]
❯ conda env create                                 
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 22.9.0
  latest version: 23.3.1

Please update conda by running

    $ conda update -n base -c conda-forge conda



Downloading and Extracting Packages
parso-0.8.3          | 69 KB     | ####################################################################################### | 100% 
pure_eval-0.2.2      | 14 KB     | ####################################################################################### | 100% 
docutils-0.20.1      | 899 KB    | ####################################################################################### | 100% 
backcall-0.2.0       | 13 KB     | ####################################################################################### | 100% 
tornado-6.3.2        | 822 KB    | ####################################################################################### | 100% 
matplotlib-inline-0. | 12 KB     | ####################################################################################### | 100% 
executing-1.2.0      | 24 KB     | ####################################################################################### | 100% 
backports.functools_ | 9 KB      | ####################################################################################### | 100% 
ipykernel-6.23.1     | 111 KB    | ####################################################################################### | 100% 
libbrotlienc-1.0.9   | 288 KB    | ####################################################################################### | 100% 
libsqlite-3.42.0     | 809 KB    | ####################################################################################### | 100% 
ptyprocess-0.7.0     | 16 KB     | ####################################################################################### | 100% 
python-dateutil-2.8. | 240 KB    | ####################################################################################### | 100% 
python-fastjsonschem | 220 KB    | ####################################################################################### | 100% 
pexpect-4.8.0        | 48 KB     | ####################################################################################### | 100% 
websocket-client-1.5 | 44 KB     | ####################################################################################### | 100% 
decorator-5.1.1      | 12 KB     | ####################################################################################### | 100% 
brotli-1.0.9         | 18 KB     | ####################################################################################### | 100% 
requests-2.31.0      | 55 KB     | ####################################################################################### | 100% 
urllib3-2.0.2        | 95 KB     | ####################################################################################### | 100% 
libbrotlicommon-1.0. | 66 KB     | ####################################################################################### | 100% 
six-1.16.0           | 14 KB     | ####################################################################################### | 100% 
pickleshare-0.7.5    | 9 KB      | ####################################################################################### | 100% 
nbclient-0.8.0       | 63 KB     | ####################################################################################### | 100% 
brotli-bin-1.0.9     | 20 KB     | ####################################################################################### | 100% 
flit-core-3.9.0      | 48 KB     | ####################################################################################### | 100% 
libbrotlidec-1.0.9   | 33 KB     | ####################################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate jupyterlab-extension-examples
#
# To deactivate an active environment, use
#
#     $ conda deactivate

Retrieving notices: ...working... done

[olivier]extension-examples [ main][ ][⏱ 2m37s]
❯ conda activate jupyterlab-extension-examples

[olivier]extension-examples [ main][ v18.15.0][🅒 jupyterlab-extension-examples]
❯ cd react-widget                             

[olivier]extension-examples/react-widget [ main][📦 v0.1.0][ v18.15.0][🐍 v3.11.3][🅒 jupyterlab-extension-examples]
❯ python -m pip install -e .
Obtaining file:///home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Installing collected packages: jupyterlab-examples-react-widget
  Running setup.py develop for jupyterlab-examples-react-widget
    error: subprocess-exited-with-error
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [117 lines of output]
        running develop
        /tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
        !!
        
                ********************************************************************************
                Please avoid running ``setup.py`` and ``easy_install``.
                Instead, use pypa/build, pypa/installer, pypa/build or
                other standards-based tools.
        
                See https://github.com/pypa/setuptools/issues/917 for details.
                ********************************************************************************
        
        !!
          easy_install.initialize_options(self)
        /tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
        !!
        
                ********************************************************************************
                Please avoid running ``setup.py`` directly.
                Instead, use pypa/build, pypa/installer, pypa/build or
                other standards-based tools.
        
                See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
                ********************************************************************************
        
        !!
          self.initialize_options()
        running egg_info
        writing jupyterlab_examples_react_widget.egg-info/PKG-INFO
        writing dependency_links to jupyterlab_examples_react_widget.egg-info/dependency_links.txt
        writing top-level names to jupyterlab_examples_react_widget.egg-info/top_level.txt
        reading manifest file 'jupyterlab_examples_react_widget.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        warning: no files found matching 'LICENSE'
        warning: no files found matching 'jupyter-config/jupyterlab_examples_react_widget.json'
        warning: no directories found matching 'jupyterlab_examples_react_widget/labextension'
        no previously-included directories found matching '**/node_modules'
        no previously-included directories found matching 'lib'
        warning: no previously-included files matching '*~' found anywhere in distribution
        warning: no previously-included files matching '*.pyc' found anywhere in distribution
        warning: no previously-included files matching '*.pyo' found anywhere in distribution
        warning: no previously-included files matching '.git' found anywhere in distribution
        warning: no previously-included files matching '.ipynb_checkpoints' found anywhere in distribution
        writing manifest file 'jupyterlab_examples_react_widget.egg-info/SOURCES.txt'
        running build_ext
        Creating /home/olivier/miniconda3/envs/jupyterlab-extension-examples/lib/python3.11/site-packages/jupyterlab-examples-react-widget.egg-link (link to .)
        Adding jupyterlab-examples-react-widget 0.1.0 to easy-install.pth file
        
        Installed /home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget
        running post_develop
        Installing build dependencies with npm.  This may take a while...
        > npm install
        npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
        npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
        npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
        npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
        npm ERR! code 1
        npm ERR! path /home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget
        npm ERR! command failed
        npm ERR! command sh -c jlpm run clean && jlpm run build:prod
        npm ERR! yarn run v1.21.1
        npm ERR! $ jlpm run clean:lib
        npm ERR! $ rimraf lib tsconfig.tsbuildinfo
        npm ERR! Done in 0.79s.
        npm ERR! yarn run v1.21.1
        npm ERR! $ jlpm run clean && jlpm run build:lib && jlpm run build:labextension
        npm ERR! $ jlpm run clean:lib
        npm ERR! $ rimraf lib tsconfig.tsbuildinfo
        npm ERR! $ tsc
        npm ERR! ../node_modules/@jupyterlab/rendermime/lib/widgets.d.ts(8,31): error TS2420: Class 'RenderedCommon' incorrectly implements interface 'IRenderer'.
        npm ERR!   The types of 'title.owner.layout' are incompatible between these types.
        npm ERR!     Type 'import("/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/node_modules/@lumino/widgets/types/layout").Layout' is not assignable to type 'import("/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/node_modules/@jupyterlab/rendermime-interfaces/node_modules/@lumino/widgets/types/layout").Layout'.
        npm ERR!       Property '[Symbol.iterator]' is missing in type 'import("/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/node_modules/@lumino/widgets/types/layout").Layout' but required in type 'import("/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/node_modules/@jupyterlab/rendermime-interfaces/node_modules/@lumino/widgets/types/layout").Layout'.
        npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
        npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
        npm ERR! error Command failed with exit code 1.
        npm ERR! error Command failed with exit code 1.
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/olivier/.npm/_logs/2023-05-22T21_48_56_389Z-debug-0.log
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget/setup.py", line 83, in <module>
            setuptools.setup(**setup_args)
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
            return run_commands(dist)
                   ^^^^^^^^^^^^^^^^^^
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
            dist.run_commands()
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
            self.run_command(cmd)
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
            super().run_command(command)
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
            cmd_obj.run()
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/jupyter_packaging/setupbase.py", line 151, in run
            self.run_command(post_build.__name__)
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
            self.distribution.run_command(command)
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
            super().run_command(command)
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
            cmd_obj.run()
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/jupyter_packaging/setupbase.py", line 127, in run
            func()
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/jupyter_packaging/setupbase.py", line 231, in builder
            run(npm_cmd + ["install"], cwd=node_package)
          File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/jupyter_packaging/setupbase.py", line 297, in run
            return subprocess.check_call(cmd, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/home/olivier/miniconda3/envs/jupyterlab-extension-examples/lib/python3.11/subprocess.py", line 413, in check_call
            raise CalledProcessError(retcode, cmd)
        subprocess.CalledProcessError: Command '['/home/olivier/miniconda3/envs/jupyterlab-extension-examples/bin/npm', 'install']' returned non-zero exit status 1.
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [117 lines of output]
    running develop
    /tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` and ``easy_install``.
            Instead, use pypa/build, pypa/installer, pypa/build or
            other standards-based tools.
    
            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************
    
    !!
      easy_install.initialize_options(self)
    /tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer, pypa/build or
            other standards-based tools.
    
            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
            ********************************************************************************
    
    !!
      self.initialize_options()
    running egg_info
    writing jupyterlab_examples_react_widget.egg-info/PKG-INFO
    writing dependency_links to jupyterlab_examples_react_widget.egg-info/dependency_links.txt
    writing top-level names to jupyterlab_examples_react_widget.egg-info/top_level.txt
    reading manifest file 'jupyterlab_examples_react_widget.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'LICENSE'
    warning: no files found matching 'jupyter-config/jupyterlab_examples_react_widget.json'
    warning: no directories found matching 'jupyterlab_examples_react_widget/labextension'
    no previously-included directories found matching '**/node_modules'
    no previously-included directories found matching 'lib'
    warning: no previously-included files matching '*~' found anywhere in distribution
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.pyo' found anywhere in distribution
    warning: no previously-included files matching '.git' found anywhere in distribution
    warning: no previously-included files matching '.ipynb_checkpoints' found anywhere in distribution
    writing manifest file 'jupyterlab_examples_react_widget.egg-info/SOURCES.txt'
    running build_ext
    Creating /home/olivier/miniconda3/envs/jupyterlab-extension-examples/lib/python3.11/site-packages/jupyterlab-examples-react-widget.egg-link (link to .)
    Adding jupyterlab-examples-react-widget 0.1.0 to easy-install.pth file
    
    Installed /home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget
    running post_develop
    Installing build dependencies with npm.  This may take a while...
    > npm install
    npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
    npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
    npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
    npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
    npm ERR! code 1
    npm ERR! path /home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget
    npm ERR! command failed
    npm ERR! command sh -c jlpm run clean && jlpm run build:prod
    npm ERR! yarn run v1.21.1
    npm ERR! $ jlpm run clean:lib
    npm ERR! $ rimraf lib tsconfig.tsbuildinfo
    npm ERR! Done in 0.79s.
    npm ERR! yarn run v1.21.1
    npm ERR! $ jlpm run clean && jlpm run build:lib && jlpm run build:labextension
    npm ERR! $ jlpm run clean:lib
    npm ERR! $ rimraf lib tsconfig.tsbuildinfo
    npm ERR! $ tsc
    npm ERR! ../node_modules/@jupyterlab/rendermime/lib/widgets.d.ts(8,31): error TS2420: Class 'RenderedCommon' incorrectly implements interface 'IRenderer'.
    npm ERR!   The types of 'title.owner.layout' are incompatible between these types.
    npm ERR!     Type 'import("/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/node_modules/@lumino/widgets/types/layout").Layout' is not assignable to type 'import("/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/node_modules/@jupyterlab/rendermime-interfaces/node_modules/@lumino/widgets/types/layout").Layout'.
    npm ERR!       Property '[Symbol.iterator]' is missing in type 'import("/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/node_modules/@lumino/widgets/types/layout").Layout' but required in type 'import("/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/node_modules/@jupyterlab/rendermime-interfaces/node_modules/@lumino/widgets/types/layout").Layout'.
    npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    npm ERR! error Command failed with exit code 1.
    npm ERR! error Command failed with exit code 1.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/olivier/.npm/_logs/2023-05-22T21_48_56_389Z-debug-0.log
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget/setup.py", line 83, in <module>
        setuptools.setup(**setup_args)
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
        return distutils.core.setup(**attrs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
        return run_commands(dist)
               ^^^^^^^^^^^^^^^^^^
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
        dist.run_commands()
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
        self.run_command(cmd)
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
        super().run_command(command)
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/jupyter_packaging/setupbase.py", line 151, in run
        self.run_command(post_build.__name__)
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
        self.distribution.run_command(command)
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command
        super().run_command(command)
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/jupyter_packaging/setupbase.py", line 127, in run
        func()
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/jupyter_packaging/setupbase.py", line 231, in builder
        run(npm_cmd + ["install"], cwd=node_package)
      File "/tmp/pip-build-env-706h6p2l/overlay/lib/python3.11/site-packages/jupyter_packaging/setupbase.py", line 297, in run
        return subprocess.check_call(cmd, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/olivier/miniconda3/envs/jupyterlab-extension-examples/lib/python3.11/subprocess.py", line 413, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/home/olivier/miniconda3/envs/jupyterlab-extension-examples/bin/npm', 'install']' returned non-zero exit status 1.
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

The underlying issue is tracked in jupyterlab/jupyterlab#14335 (comment)

@oscar6echo are you still seeing the issue with the latest versions of the packages?

A fix was submitted in JupyterLab and should now be available: jupyterlab/jupyterlab#14618

Just back from some holidays.

I git cloned again and tested.
The error above has gone.

For ref here is the log:

[olivier]extension-examples [ main][ ]
❯ conda env create 
Retrieving notices: ...working... done

CondaValueError: prefix already exists: /home/olivier/miniconda3/envs/jupyterlab-extension-examples


[olivier]extension-examples [ main][ ]
❯ conda env remove -n jupyterlab-extension-examples

Remove all packages in environment /home/olivier/miniconda3/envs/jupyterlab-extension-examples:


[olivier]extension-examples [ main][ ]
❯ conda env create                                 
Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate jupyterlab-extension-examples
#
# To deactivate an active environment, use
#
#     $ conda deactivate


[olivier]extension-examples [ main][?][ ][⏱ 2m7s]
❯ conda activate jupyterlab-extension-examples

[olivier]extension-examples [ main][?][ v18.16.1][🅒 jupyterlab-extension-examples]
❯ cd react-widget                             

[olivier]extension-examples/react-widget [ main][?][📦 v0.1.0][ v18.16.1][🐍 v3.11.4][🅒 jupyterlab-extension-examples]
❯ pip install -e .                  
Obtaining file:///home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Installing backend dependencies ... done
  Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: jupyterlab_examples_react_widget
  Building editable for jupyterlab_examples_react_widget (pyproject.toml) ... done
  Created wheel for jupyterlab_examples_react_widget: filename=jupyterlab_examples_react_widget-0.1.0-py3-none-any.whl size=33902 sha256=9780961b2f1eb48f39d1bf4b699477d6d8468e76aef9f2325c1a6fd8b331614e
  Stored in directory: /tmp/pip-ephem-wheel-cache-54ynh0o8/wheels/1b/78/cb/9feb7fbb3dc768e68e87d19073ab3d14f72255c76f8352cbda
Successfully built jupyterlab_examples_react_widget
Installing collected packages: jupyterlab_examples_react_widget
Successfully installed jupyterlab_examples_react_widget-0.1.0

[olivier]extension-examples/react-widget [ main][?][📦 v0.1.0][ v18.16.1][🐍 v3.11.4][🅒 jupyterlab-extension-examples][⏱ 58s]
❯ jupyter labextension develop . --overwrite
Installing /home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget/jupyterlab_examples_react_widget/labextension -> @jupyterlab-examples/react-widget
Removing: /home/olivier/miniconda3/envs/jupyterlab-extension-examples/share/jupyter/labextensions/@jupyterlab-examples/react-widget
Symlinking: /home/olivier/miniconda3/envs/jupyterlab-extension-examples/share/jupyter/labextensions/@jupyterlab-examples/react-widget -> /home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget/jupyterlab_examples_react_widget/labextension

[olivier]extension-examples/react-widget [ main][?][📦 v0.1.0][ v18.16.1][🐍 v3.11.4][🅒 jupyterlab-extension-examples]
❯ jlpm run build                            
Building extension in .
➤ YN0000: ┌ Resolution step
➤ YN0002: │ @jupyterlab-examples/codemirror-extension@workspace:codemirror-extension doesn't provide webpack (p6ccbb), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/codemirror-extension@workspace:codemirror-extension doesn't provide webpack (p32c09), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/codemirror-extension@workspace:codemirror-extension doesn't provide webpack (pd84c6), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/command-palette@workspace:command-palette doesn't provide webpack (pece86), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/command-palette@workspace:command-palette doesn't provide webpack (pfba55), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/command-palette@workspace:command-palette doesn't provide webpack (p0947e), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/commands@workspace:commands doesn't provide webpack (pc8d6e), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/commands@workspace:commands doesn't provide webpack (pe3ca8), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/commands@workspace:commands doesn't provide webpack (pf91f5), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/completer@workspace:completer doesn't provide react (p83a82), requested by @jupyterlab/settingregistry
➤ YN0002: │ @jupyterlab-examples/completer@workspace:completer doesn't provide webpack (pa684d), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/completer@workspace:completer doesn't provide webpack (p24415), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/completer@workspace:completer doesn't provide webpack (pe05a6), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/contentheader@workspace:contentheader doesn't provide webpack (p61902), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/contentheader@workspace:contentheader doesn't provide webpack (p4dc40), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/contentheader@workspace:contentheader doesn't provide webpack (p7ea6d), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/context-menu@workspace:context-menu doesn't provide webpack (p4de5b), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/context-menu@workspace:context-menu doesn't provide webpack (pf4095), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/context-menu@workspace:context-menu doesn't provide webpack (pdbe1c), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/custom-log-console@workspace:custom-log-console doesn't provide webpack (pe29a3), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/custom-log-console@workspace:custom-log-console doesn't provide webpack (p53755), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/custom-log-console@workspace:custom-log-console doesn't provide webpack (p5d176), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/datagrid@workspace:datagrid doesn't provide webpack (pa2364), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/datagrid@workspace:datagrid doesn't provide webpack (p6d824), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/datagrid@workspace:datagrid doesn't provide webpack (pd4407), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/documents@workspace:documents doesn't provide webpack (p6f82b), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/documents@workspace:documents doesn't provide webpack (p9a21a), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/documents@workspace:documents doesn't provide webpack (pa5425), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/hello-world@workspace:hello-world doesn't provide webpack (pd42eb), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/hello-world@workspace:hello-world doesn't provide webpack (pe8b24), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/hello-world@workspace:hello-world doesn't provide webpack (pf1cd5), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/kernel-messaging@workspace:kernel-messaging doesn't provide webpack (pc1db6), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/kernel-messaging@workspace:kernel-messaging doesn't provide webpack (p4b2de), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/kernel-messaging@workspace:kernel-messaging doesn't provide webpack (pf79fa), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/kernel-output@workspace:kernel-output doesn't provide webpack (pe828a), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/kernel-output@workspace:kernel-output doesn't provide webpack (pab817), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/kernel-output@workspace:kernel-output doesn't provide webpack (p9c0aa), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/launcher@workspace:launcher doesn't provide webpack (p9b42f), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/launcher@workspace:launcher doesn't provide webpack (pc3e53), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/launcher@workspace:launcher doesn't provide webpack (p082a2), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/log-messages@workspace:log-messages doesn't provide webpack (p33dfb), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/log-messages@workspace:log-messages doesn't provide webpack (p4bf1f), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/log-messages@workspace:log-messages doesn't provide webpack (p97b91), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/main-menu@workspace:main-menu doesn't provide webpack (p78077), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/main-menu@workspace:main-menu doesn't provide webpack (p953fb), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/main-menu@workspace:main-menu doesn't provide webpack (p35128), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/metadata-form@workspace:metadata-form doesn't provide webpack (paf841), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/metadata-form@workspace:metadata-form doesn't provide webpack (p11618), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/metadata-form@workspace:metadata-form doesn't provide webpack (p70b28), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/notifications@workspace:notifications doesn't provide webpack (p2e6a8), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/notifications@workspace:notifications doesn't provide webpack (p3c53e), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/notifications@workspace:notifications doesn't provide webpack (pdfef0), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/react-widget@workspace:react-widget doesn't provide webpack (p662b0), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/react-widget@workspace:react-widget doesn't provide webpack (pb57ea), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/react-widget@workspace:react-widget doesn't provide webpack (p05c46), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/server-extension@workspace:server-extension doesn't provide webpack (p4a98a), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/server-extension@workspace:server-extension doesn't provide webpack (pc7240), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/server-extension@workspace:server-extension doesn't provide webpack (p80db1), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/settings@workspace:settings doesn't provide react (pc3f8d), requested by @jupyterlab/settingregistry
➤ YN0002: │ @jupyterlab-examples/settings@workspace:settings doesn't provide webpack (pd89ac), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/settings@workspace:settings doesn't provide webpack (p7041f), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/settings@workspace:settings doesn't provide webpack (pfddbf), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/signals@workspace:signals doesn't provide webpack (pa2c53), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/signals@workspace:signals doesn't provide webpack (paeb40), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/signals@workspace:signals doesn't provide webpack (p0663e), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/state@workspace:state doesn't provide webpack (p5a0d9), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/state@workspace:state doesn't provide webpack (p6a36d), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/state@workspace:state doesn't provide webpack (pf4372), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/toolbar-button@workspace:toolbar-button doesn't provide webpack (p157cd), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/toolbar-button@workspace:toolbar-button doesn't provide webpack (pa5ce6), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/toolbar-button@workspace:toolbar-button doesn't provide webpack (pa4156), requested by style-loader
➤ YN0002: │ @jupyterlab-examples/widgets@workspace:widgets doesn't provide webpack (p982d0), requested by css-loader
➤ YN0002: │ @jupyterlab-examples/widgets@workspace:widgets doesn't provide webpack (p9fe78), requested by source-map-loader
➤ YN0002: │ @jupyterlab-examples/widgets@workspace:widgets doesn't provide webpack (p49ebf), requested by style-loader
➤ YN0002: │ @jupyterlab/galata@npm:5.0.2 doesn't provide react (p8f8fb), requested by @jupyterlab/settingregistry
➤ YN0002: │ @jupyterlab/metadataform@npm:4.0.2 doesn't provide @rjsf/utils (p611fa), requested by @rjsf/core
➤ YN0002: │ @jupyterlab/metadataform@npm:4.0.2 doesn't provide @rjsf/utils (pfd735), requested by @rjsf/validator-ajv8
➤ YN0002: │ @jupyterlab/services@npm:7.0.2 doesn't provide react (p59bbe), requested by @jupyterlab/settingregistry
➤ YN0002: │ @jupyterlab/testutils@npm:4.0.2 doesn't provide typescript (p2a10d), requested by @jupyterlab/testing
➤ YN0002: │ @lerna/legacy-package-management@npm:6.6.2 doesn't provide nx (pfc6c3), requested by @nrwl/devkit
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 485ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 396ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 555ms
➤ YN0000: Done with warnings in 1s 539ms

Compilation starting…


Compilation finished

asset remoteEntry.77b62d38be4344c6d6f8.js 27.5 KiB [emitted] [immutable] (name: @jupyterlab-examples/react-widget) 1 related asset
asset style_index_js.be2b5a662cdbda1738fa.js 19.5 KiB [emitted] [immutable] 1 related asset
asset lib_index_js.5e775eaa7f6e414699bd.js 5.29 KiB [emitted] [immutable] 1 related asset
runtime modules 18.4 KiB 13 modules
built modules 13.3 KiB (javascript) 168 bytes (consume-shared) 42 bytes (share-init) [built]
  javascript modules 13.3 KiB
    modules by path ../node_modules/ 8.58 KiB 8 modules
    modules by path ./ 4.68 KiB
      modules by path ./style/ 2.47 KiB 3 modules
      modules by path ./lib/*.js 2.21 KiB 2 modules
    container entry 42 bytes [built] [code generated]
  consume-shared-module modules 168 bytes
    consume shared module (default) @jupyterlab/apputils@^4.1.2 (singleton) 42 bytes [built] [code generated]
    consume shared module (default) @jupyterlab/launcher@^4.0.2 (singleton) 42 bytes [built] [code generated]
    consume shared module (default) @jupyterlab/ui-components@^4.0.2 (singleton) 42 bytes [built] [code generated]
    consume shared module (default) react@^18.2.0 (singleton) 42 bytes [built] [code generated]
  provide shared module (default) @jupyterlab-examples/react-widget@0.1.0 = ...(truncated) 42 bytes [built] [code generated]
webpack 5.88.1 compiled successfully in 324 ms

[olivier]extension-examples/react-widget [ main][?][📦 v0.1.0][ v18.16.1][🐍 v3.11.4][🅒 jupyterlab-extension-examples]
❯ jupyter lab --no-browser --watch
[I 2023-07-02 22:04:00.701 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-07-02 22:04:00.709 ServerApp] Package jupyter_lsp took 0.0075s to import
[W 2023-07-02 22:04:00.709 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-07-02 22:04:00.712 ServerApp] Package jupyter_server_terminals took 0.0031s to import
[I 2023-07-02 22:04:00.712 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-07-02 22:04:00.712 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-07-02 22:04:00.713 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2023-07-02 22:04:00.716 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-07-02 22:04:00.720 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-07-02 22:04:00.860 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-07-02 22:04:00.869 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-07-02 22:04:00.870 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-07-02 22:04:00.871 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-07-02 22:04:00.872 LabApp] JupyterLab extension loaded from /home/olivier/miniconda3/envs/jupyterlab-extension-examples/lib/python3.11/site-packages/jupyterlab
[I 2023-07-02 22:04:00.872 LabApp] JupyterLab application directory is /home/olivier/miniconda3/envs/jupyterlab-extension-examples/share/jupyter/lab
[I 2023-07-02 22:04:00.872 LabApp] Starting JupyterLab watch mode...
[I 2023-07-02 22:04:07.887 LabApp] > node /home/olivier/miniconda3/envs/jupyterlab-extension-examples/lib/python3.11/site-packages/jupyterlab/staging/yarn.js run watch
assets by path *.js 48.3 MiB
  assets by chunk 30.5 MiB (id hint: vendors)
    asset vendors-node_modules_vega_build_vega_module_js.c9ed08bd77b7340067e4.js 3.67 MiB [emitted] [immutable] (id hint: vendors)
    asset vendors-node_modules_react-dom_index_js.80a011ac7d0776edb82a.js 2.55 MiB [emitted] [immutable] (id hint: vendors)
    asset vendors-node_modules_vega-lite_build_src_index_js.0243054317603afb7fbe.js 2.48 MiB [emitted] [immutable] (id hint: vendors)
    + 85 assets
  + 91 assets
assets by chunk 3.11 MiB (auxiliary id hint: vendors)
  assets by path *.woff 524 KiB 25 assets
  assets by path *.svg 1.73 MiB 3 assets
  assets by path *.eot 363 KiB 3 assets
  assets by path *.ttf 362 KiB 3 assets
  assets by path *.woff2 164 KiB 3 assets
asset index.html 1.96 KiB [emitted]
Entrypoint main 769 KiB = vendors-node_modules_whatwg-fetch_fetch_js.470effdc474a519d4748.js 44 KiB main.b45980d8474305ccff7f.js 725 KiB
orphan modules 215 KiB [orphan] 202 modules
runtime modules 288 KiB 17 modules
javascript modules 16.5 MiB
  modules by path ./node_modules/ 16.4 MiB 2513 modules
  modules by path ./build/*.js 22.9 KiB 3 modules
  + 7 modules
asset modules 153 KiB (javascript) 3.11 MiB (asset) 248 modules
provide-module modules 5.17 KiB 126 modules
consume-shared-module modules 5.17 KiB 126 modules
json modules 44.1 KiB
  modules by path ./node_modules/entities/lib/ 30 KiB 4 modules
  modules by path ./node_modules/ajv/dist/ 3.07 KiB 2 modules
  ./node_modules/vega-lite/build/package.json 5.12 KiB [built] [code generated]
  ./node_modules/@jupyterlab/settingregistry/lib/plugin-schema.json 5.9 KiB [built] [code generated]
webpack 5.76.1 compiled successfully in 8148 ms

asset index.css 17.3 KiB [compared for emit] (name: index)
asset index.js 0 bytes [compared for emit] [minimized] (name: index)
Entrypoint index 17.3 KiB = index.css 17.3 KiB index.js 0 bytes
orphan modules 21.1 KiB (javascript) 937 bytes (runtime) [orphan] 8 modules
cacheable modules 50 bytes (javascript) 17.3 KiB (css/mini-extract)
  ./node_modules/@jupyterlab/theme-dark-extension/style/theme.css 50 bytes [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-dark-extension/style/variables.css 16.7 KiB [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-dark-extension/style/theme.css 656 bytes [built] [code generated]
webpack 5.76.1 compiled successfully in 938 ms

asset index.css 16.1 KiB [compared for emit] (name: index)
asset index.js 0 bytes [compared for emit] [minimized] (name: index)
Entrypoint index 16.1 KiB = index.css 16.1 KiB index.js 0 bytes
orphan modules 19.8 KiB (javascript) 937 bytes (runtime) [orphan] 8 modules
cacheable modules 50 bytes (javascript) 16.1 KiB (css/mini-extract)
  ./node_modules/@jupyterlab/theme-light-extension/style/theme.css 50 bytes [built] [code generated]
ules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-light-extension/style/variables.css 15.6 KiB [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-light-extension/style/theme.css 472 bytes [built] [code generated]
webpack 5.76.1 compiled successfully in 936 ms
[I 2023-07-02 22:04:17.932 LabApp] Extension Manager is 'pypi'.
[I 2023-07-02 22:04:17.934 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-07-02 22:04:17.934 ServerApp] Serving notebooks from local directory: /home/olivier/GDrive/dev/jupyterlab-explo/extension-examples/react-widget
[I 2023-07-02 22:04:17.934 ServerApp] Jupyter Server 2.7.0 is running at:
[I 2023-07-02 22:04:17.934 ServerApp] http://localhost:8888/lab?token=c891cea91cc22d42ab5e7c945514cfc50becca64076cfd12
[I 2023-07-02 22:04:17.935 ServerApp]     http://127.0.0.1:8888/lab?token=c891cea91cc22d42ab5e7c945514cfc50becca64076cfd12
[I 2023-07-02 22:04:17.935 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-07-02 22:04:17.936 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///home/olivier/.local/share/jupyter/runtime/jpserver-647465-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=c891cea91cc22d42ab5e7c945514cfc50becca64076cfd12
        http://127.0.0.1:8888/lab?token=c891cea91cc22d42ab5e7c945514cfc50becca64076cfd12
[I 2023-07-02 22:04:18.354 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server

@oscar6echo it looks like this is now building fine according to the logs?

Indeed, yes it is.

OK thanks for getting back 👍

Closing as fixed, but feel free to re-open if the issue reappears.