Closed mwouts closed 1 year ago
There must be an issue with my conda environment (created with conda env create --file environment.yml
).
In an empty virtual env (jupyterlab<4
and jupyter_packaging<0.13
), with node 16.14.0 installed using https://github.com/nvm-sh/nvm#install--update-script, the build command works.
When I run
BUILD_JUPYTERLAB_EXTENSION=1 python setup.py bdist_wheel
locally, the build fails with an error about an invalid regular expression inwebpack/lib/RuntimeTemplate.js:64
detailed logs
``` /home/marc/GitHub/jupytext/setup.py:158: DeprecatedWarning: create_cmdclass is deprecated as of 0.8 and will be removed in 1.0. " Use `wrap_installers` to handle prebuild steps in cmdclass. Use `get_data_files` to handle data files. Use `include_package_data=True` and `MANIFEST.in` for package data. cmdclass = create_cmdclass( /home/marc/GitHub/jupytext/setup.py:165: DeprecatedWarning: install_npm is deprecated as of 0.8 and will be removed in 1.0. Use `npm_builder` and `wrap_installers` install_npm( running bdist_wheel running jsdeps yarn not found, ignoring yarn.lock file Installing build dependencies with npm. This may take a while... > jlpm install yarn install v1.21.1 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... warning "@jupyterlab/application > @lumino/coreutils@1.12.1" has unmet peer dependency "crypto@1.0.1". warning "@jupyterlab/builder > @jupyterlab/buildutils > verdaccio > clipanion@3.1.0" has unmet peer dependency "typanion@*". warning "@jupyterlab/codemirror > y-codemirror@3.0.1" has unmet peer dependency "yjs@^13.5.17". warning " > @jupyterlab/ui-components@3.5.0" has unmet peer dependency "react@^17.0.1". warning Workspaces can only be enabled in private projects. warning Workspaces can only be enabled in private projects. [4/4] Building fresh packages... $ jlpm run clean && jlpm run build:prod yarn run v1.21.1 $ jlpm run clean:lib $ rimraf lib tsconfig.tsbuildinfo Done in 0.60s. yarn run v1.21.1 $ jlpm run build:lib && jlpm run build:labextension $ tsc $ jupyter labextension build . Building extension in . /home/marc/GitHub/jupytext/packages/labextension/node_modules/webpack/lib/RuntimeTemplate.js:64 trimmed.match(/^[_\p{L}][_0-9\p{L}]*$/iu) || ^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Invalid regular expression: /^[_\p{L}][_0-9\p{L}]*$/: Invalid property name in character class at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1176:20) at Module._compile (node:internal/modules/cjs/loader:1218:27) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.