Skip to content

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

Open
@mingzhangqun

Description

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

mkdir nr ncc
cd ncc
npm i @vercel/ncc
cd ../nr
npm i [email protected]
../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)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions