Skip to content

Invalid regular expression error when running python setup.py updateplotlyjs #4166

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

Closed
LiamConnors opened this issue Apr 18, 2023 · 2 comments

Comments

@LiamConnors
Copy link
Member

When running python setup.py updateplotlyjs, it throws this error:


> [email protected] build:prod
> npm run build:lib && npm run build:nbextension && npm run build:labextension


> [email protected] build:lib
> tsc


> [email protected] build:nbextension
> webpack --mode=production

[webpack-cli] /Users/lc/Documents/plotly.py/packages/javascript/jupyterlab-plotly/node_modules/webpack/lib/cli.js:68
                                /(\p{Uppercase_Letter}+|\p{Lowercase_Letter}|\d)(\p{Uppercase_Letter}+)/gu,
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Invalid regular expression: /(\p{Uppercase_Letter}+|\p{Lowercase_Letter}|\d)(\p{Uppercase_Letter}+)/: Invalid property name
    at new Script (node:vm:100:7)
    at NativeCompileCache._moduleCompile (/Users/lc/Documents/plotly.py/packages/javascript/jupyterlab-plotly/node_modules/v8-compile-cache/v8-compile-cache.js:240:18)
    at Module._compile (/Users/lc/Documents/plotly.py/packages/javascript/jupyterlab-plotly/node_modules/v8-compile-cache/v8-compile-cache.js:184:36)
    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 (/Users/lc/Documents/plotly.py/packages/javascript/jupyterlab-plotly/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at get cli (/Users/lc/Documents/plotly.py/packages/javascript/jupyterlab-plotly/node_modules/webpack/lib/index.js:129:10)
    at Function.cli (/Users/lc/Documents/plotly.py/packages/javascript/jupyterlab-plotly/node_modules/webpack/lib/util/memoize.js:22:13)
rebuilding js and css failed (not a problem)
Command '['npm', 'run', 'build:prod']' returned non-zero exit status 2.
running updatebundle
running updateschema
running codegen
@LiamConnors LiamConnors changed the title SyntaxError: Invalid regular expression: when running python setup.py updateplotlyjs Invalid regular expression error when running python setup.py updateplotlyjs Apr 18, 2023
@LiamConnors
Copy link
Member Author

@nicolaskruchten have you encountered this issue before on the build? Initially I could recreate it locally but now it just seems to be in the release build on CI.

@LiamConnors
Copy link
Member Author

#4188

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