Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SyntaxError: Invalid regular expression: /^[_\p{L}][_0-9\p{L}]*$/: Invalid property name in character class #1211

Open
mingzhangqun opened this issue Sep 6, 2024 · 0 comments

Comments

@mingzhangqun
Copy link

mingzhangqun commented Sep 6, 2024

Package node-red on risc-v board, encounter an error.

mkdir nr ncc
cd ncc
npm i @vercel/ncc
cd ../nr
npm i node-red@3.1.11
../ncc/node_modules/.bin/ncc build node_modules/node-red/red.js -o dist

Output log:

/userdata/NR/ncc/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:38
...
SyntaxError: Invalid regular expression: /^[_\p{L}][_0-9\p{L}]*$/: Invalid property name in character class
    at new Script (node:vm:100:7)
    at Object.<anonymous> (/userdata/NR/ncc/node_modules/@vercel/ncc/dist/ncc/index.js:6:16)
    at Module._compile (node:internal/modules/cjs/loader:1099:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.717 (/userdata/NR/ncc/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:84736)
    at __webpack_require__ (/userdata/NR/ncc/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:88147)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant