'AppOptions' object has no attribute 'extensions'

when building GitHub - lckr/jupyterlab-variableInspector: Variable Inspector extension for Jupyterlab

version:jupyterlab 3.2.1

server console show these message below
[I 2021-10-31 15:52:39.166 LabApp] Building jupyterlab assets (production, minimized)
[W 2021-10-31 15:52:39.929 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x0000029114415430>
[W 2021-10-31 15:53:38.352 LabApp] Build failed, running a clean and rebuild
[I 2021-10-31 15:53:38.359 LabApp] Cleaning C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab…
[W 2021-10-31 15:53:38.360 ServerApp] 500 POST /lab/api/build?1635666757946 (::1): ‘AppOptions’ object has no attribute ‘extensions’
[W 2021-10-31 15:53:38.360 LabApp] ‘AppOptions’ object has no attribute ‘extensions’

See the log file for details: log file show below

[LabBuildApp] Building in C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab

[LabBuildApp] Node v14.16.1

[LabBuildApp] Yarn configuration loaded.

[LabBuildApp] Building jupyterlab assets (production, not minimized)

[LabBuildApp] > node c:\users\xxx\appdata\local\programs\python\python39\lib\site-packages\jupyterlab\staging\yarn.js install --non-interactive

[LabBuildApp] yarn install v1.21.1

[1/5] Validating package.json…

[2/5] Resolving packages…

success Already up-to-date.

Done in 0.77s.

[LabBuildApp] > node c:\users\xxx\appdata\local\programs\python\python39\lib\site-packages\jupyterlab\staging\yarn.js yarn-deduplicate -s fewer --fail

[LabBuildApp] yarn run v1.21.1

$ C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules.bin\yarn-deduplicate -s fewer --fail

Done in 0.56s.

[LabBuildApp] > node c:\users\xxx\appdata\local\programs\python\python39\lib\site-packages\jupyterlab\staging\yarn.js run build:prod

[LabBuildApp] yarn run v1.21.1

$ webpack --config webpack.prod.config.js

assets by status 18.9 MiB e[1me[32m[cached]e[39me[22m 123 assets

orphan modules 5.05 MiB e[1me[33m[orphan]e[39me[22m 1286 modules

runtime modules 108 KiB 14 modules

built modules 14.2 MiB (javascript) 4.63 KiB (consume-shared) 4.59 KiB (share-init) e[1me[33m[built]e[39me[22m

modules by path e[1m./node_modules/e[39me[22m 14.1 MiB

javascript modules 14.1 MiB 1048 modules

json modules 33.2 KiB 6 modules

consume-shared-module modules 4.63 KiB

modules by path e[1mconsume shared module (default) @jupyterlab/e[39me[22m 3.65 KiB 42 modules

modules by path e[1mconsume shared module (default) @lumino/e[39me[22m 588 bytes 14 modules

provide-module modules 4.59 KiB 112 modules

modules by path e[1m./build/e[39me[22m 23.8 KiB

e[1m./build/bootstrap.jse[39me[22m 3.86 KiB e[1me[33m[built]e[39me[22m e[1me[33m[code generated]e[39me[22m

e[1m./build/index.out.js + 1 modulese[39me[22m 19.9 KiB e[1me[33m[built]e[39me[22m e[1me[33m[code generated]e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/application-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/application. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/apputils-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/apputils. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/attachments. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/cells. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/celltags-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/celltags. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/codeeditor. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/codemirror-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/codemirror. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/completer-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/completer. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/console-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/console. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/coreutils. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/csvviewer-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/csvviewer. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/debugger-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/debugger. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[33mWARNINGe[39me[22m in e[1mlicense-webpack-plugin: could not find any license file for @jupyterlab/docmanager-extension. Use the licenseTextOverrides option to add the license text if desired.e[39me[22m

e[1me[31mERRORe[39me[22m in e[1me[32mresolving fallback for shared module @lckr/jupyterlab_variableinspectore[39me[22m

e[1mModule e[1me[31mnot founde[39me[22me[1m: e[1me[31mErrore[39me[22me[1m: Can’t resolve ‘@lckr/jupyterlab_variableinspector’ in 'C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\build’e[39me[22m

resolve ‘@lckr/jupyterlab_variableinspector’ in ‘C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\build’

Parsed request is a module

using description file: C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\build\package.json (relative path: .)

Field 'browser' doesn't contain a valid alias configuration

resolve as module

  e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\build\node_modules doesn't existe[39me[22m or is not a directory

  looking for modules in C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules

    single file module

      using description file: C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\package.json (relative path: ./node_modules/@lckr/jupyterlab_variableinspector)

        no extension

          Field 'browser' doesn't contain a valid alias configuration

          C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector is not a file

        .js

          Field 'browser' doesn't contain a valid alias configuration

          e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.js doesn't existe[39me[22m

        .json

          Field 'browser' doesn't contain a valid alias configuration

          e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.json doesn't existe[39me[22m

        .wasm

          Field 'browser' doesn't contain a valid alias configuration

          e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.wasm doesn't existe[39me[22m

    existing directory C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector

      using description file: C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\package.json (relative path: .)

        using description file: C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\package.json (relative path: ./node_modules/@lckr/jupyterlab_variableinspector)

          no extension

            Field 'browser' doesn't contain a valid alias configuration

            C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector is not a file

          .js

            Field 'browser' doesn't contain a valid alias configuration

            e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.js doesn't existe[39me[22m

          .json

            Field 'browser' doesn't contain a valid alias configuration

            e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.json doesn't existe[39me[22m

          .wasm

            Field 'browser' doesn't contain a valid alias configuration

            e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.wasm doesn't existe[39me[22m

          as directory

            existing directory C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector

              using description file: C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\package.json (relative path: .)

                use ./lib/index.js from main in package.json

                  using description file: C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\package.json (relative path: ./lib/index.js)

                    no extension

                      Field 'browser' doesn't contain a valid alias configuration

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js doesn't existe[39me[22m

                    .js

                      Field 'browser' doesn't contain a valid alias configuration

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js.js doesn't existe[39me[22m

                    .json

                      Field 'browser' doesn't contain a valid alias configuration

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js.json doesn't existe[39me[22m

                    .wasm

                      Field 'browser' doesn't contain a valid alias configuration

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js.wasm doesn't existe[39me[22m

                    as directory

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js doesn't existe[39me[22m

                using path: C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index

                  using description file: C:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\package.json (relative path: ./index)

                    no extension

                      Field 'browser' doesn't contain a valid alias configuration

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index doesn't existe[39me[22m

                    .js

                      Field 'browser' doesn't contain a valid alias configuration

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index.js doesn't existe[39me[22m

                    .json

                      Field 'browser' doesn't contain a valid alias configuration

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index.json doesn't existe[39me[22m

                    .wasm

                      Field 'browser' doesn't contain a valid alias configuration

                      e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index.wasm doesn't existe[39me[22m

  e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\lab\node_modules doesn't existe[39me[22m or is not a directory

  e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\jupyter\node_modules doesn't existe[39me[22m or is not a directory

  e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\share\node_modules doesn't existe[39me[22m or is not a directory

  e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\Python39\node_modules doesn't existe[39me[22m or is not a directory

  e[1me[31mC:\Users\xxx\AppData\Local\Programs\Python\node_modules doesn't existe[39me[22m or is not a directory

  e[1me[31mC:\Users\xxx\AppData\Local\Programs\node_modules doesn't existe[39me[22m or is not a directory

  e[1me[31mC:\Users\xxx\AppData\Local\node_modules doesn't existe[39me[22m or is not a directory

  e[1me[31mC:\Users\xxx\AppData\node_modules doesn't existe[39me[22m or is not a directory

  looking for modules in C:\Users\xxx\node_modules

    single file module

      No description file found in C:\Users\xxx\node_modules\@lckr or above

      no extension

        Field 'browser' doesn't contain a valid alias configuration

        e[1me[31mC:\Users\xxx\node_modules\@lckr\jupyterlab_variableinspector doesn't existe[39me[22m

      .js

        Field 'browser' doesn't contain a valid alias configuration

        e[1me[31mC:\Users\xxx\node_modules\@lckr\jupyterlab_variableinspector.js doesn't existe[39me[22m

      .json

        Field 'browser' doesn't contain a valid alias configuration

        e[1me[31mC:\Users\xxx\node_modules\@lckr\jupyterlab_variableinspector.json doesn't existe[39me[22m

      .wasm

        Field 'browser' doesn't contain a valid alias configuration

        e[1me[31mC:\Users\xxx\node_modules\@lckr\jupyterlab_variableinspector.wasm doesn't existe[39me[22m

    e[1me[31mC:\Users\xxx\node_modules\@lckr\jupyterlab_variableinspector doesn't existe[39me[22m

  e[1me[31mC:\Users\node_modules doesn't existe[39me[22m or is not a directory

  e[1me[31mC:\node_modules doesn't existe[39me[22m or is not a directory

webpack 5.59.0 compiled with e[1me[31m1 errore[39me[22m and e[1me[33m107 warningse[39me[22m in 20408 ms

asset e[1me[32mindex.csse[39me[22m 15.8 KiB e[1me[33m[compared for emit]e[39me[22m (name: index)

asset e[1me[32mindex.jse[39me[22m 0 bytes e[1me[33m[compared for emit]e[39me[22m e[1me[32m[minimized]e[39me[22m (name: index)

Entrypoint e[1mindexe[39me[22m 15.8 KiB = e[1me[32mindex.csse[39me[22m 15.8 KiB e[1me[32mindex.jse[39me[22m 0 bytes

e[1m./node_modules/@jupyterlab/theme-dark-extension/style/theme.csse[39me[22m 50 bytes e[1me[33m[built]e[39me[22m e[1me[33m[code generated]e[39me[22m

css ./node_modules/css-loader/dist/cjs.js!e[1m./node_modules/@jupyterlab/theme-dark-extension/style/variables.csse[39me[22m 15.3 KiB e[1me[33m[code generated]e[39me[22m

css ./node_modules/css-loader/dist/cjs.js!e[1m./node_modules/@jupyterlab/theme-dark-extension/style/theme.csse[39me[22m 472 bytes e[1me[33m[code generated]e[39me[22m

webpack 5.59.0 compiled e[1me[32msuccessfullye[39me[22m in 2968 ms

asset e[1me[32mindex.csse[39me[22m 14.7 KiB e[1me[33m[compared for emit]e[39me[22m (name: index)

asset e[1me[32mindex.jse[39me[22m 0 bytes e[1me[33m[compared for emit]e[39me[22m e[1me[32m[minimized]e[39me[22m (name: index)

Entrypoint e[1mindexe[39me[22m 14.7 KiB = e[1me[32mindex.csse[39me[22m 14.7 KiB e[1me[32mindex.jse[39me[22m 0 bytes

e[1m./node_modules/@jupyterlab/theme-light-extension/style/theme.csse[39me[22m 50 bytes e[1me[33m[built]e[39me[22m e[1me[33m[code generated]e[39me[22m

css ./node_modules/css-loader/dist/cjs.js!e[1m./node_modules/@jupyterlab/theme-light-extension/style/variables.csse[39me[22m 14.3 KiB e[1me[33m[code generated]e[39me[22m

css ./node_modules/css-loader/dist/cjs.js!e[1m./node_modules/@jupyterlab/theme-light-extension/style/theme.csse[39me[22m 472 bytes e[1me[33m[code generated]e[39me[22m

webpack 5.59.0 compiled e[1me[32msuccessfullye[39me[22m in 2840 ms

error Command failed with exit code 1.

info Visit yarn run | Yarn for documentation about this command.

[LabBuildApp] JupyterLab failed to build

[LabBuildApp] Traceback (most recent call last):

[LabBuildApp] File “c:\users\xxx\appdata\local\programs\python\python39\lib\site-packages\jupyterlab\debuglog.py”, line 48, in debug_logging

yield

[LabBuildApp] File “c:\users\xxx\appdata\local\programs\python\python39\lib\site-packages\jupyterlab\labapp.py”, line 176, in start

raise e

[LabBuildApp] File “c:\users\xxx\appdata\local\programs\python\python39\lib\site-packages\jupyterlab\labapp.py”, line 172, in start

build(name=self.name, version=self.version,

[LabBuildApp] File “c:\users\xxx\appdata\local\programs\python\python39\lib\site-packages\jupyterlab\commands.py”, line 482, in build

return handler.build(name=name, version=version, static_url=static_url,

[LabBuildApp] File “c:\users\xxx\appdata\local\programs\python\python39\lib\site-packages\jupyterlab\commands.py”, line 697, in build

raise RuntimeError(msg)

[LabBuildApp] RuntimeError: JupyterLab failed to build

[LabBuildApp] Exiting application: JupyterLab

i finally solve this problem by