Cannot build in Rocky Linux. I have a project which builds perfectly on macOS and Ubuntu but when running parcel build in Rocky Linux 8 (with exactly the same configuration) I obtain a Invalid regular expression (details below) error which does not let me build the code. I tried the fix proposed at #2316 but neither adding <meta charset="UTF-8" /> nor disabling optimization solves the issue.
The compilation process fails with the following error:
🚨 Build failed.
Error: Invalid regular expression: /^[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*$/: Invalid property name in character class
/home/cdominguez/Desktop/Developer/horus/node_modules/@parcel/packager-js/lib/ScopeHoistingPackager.js:65
const IDENTIFIER_RE = /^[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*$/u;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Invalid regular expression: /^[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*$/: 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 NodePackageManager.load (/home/cdominguez/Desktop/Developer/horus/node_modules/@parcel/package-manager/lib/index.js:3423:15)
at NodePackageManager.requireSync (/home/cdominguez/Desktop/Developer/horus/node_modules/@parcel/package-manager/lib/index.js:3395:21)
at m.require (/home/cdominguez/Desktop/Developer/horus/node_modules/@parcel/package-manager/lib/index.js:3410:25)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (/home/cdominguez/Desktop/Developer/horus/node_modules/@parcel/packager-js/lib/index.js:43:30)
💁 Possible Solution
No solution found yet.
🔦 Context
Cannot build my project in this specific linux machine because of this.
🐛 bug report
Cannot build in Rocky Linux. I have a project which builds perfectly on macOS and Ubuntu but when running
parcel build
in Rocky Linux 8 (with exactly the same configuration) I obtain aInvalid regular expression
(details below) error which does not let me build the code. I tried the fix proposed at #2316 but neither adding<meta charset="UTF-8" />
nor disabling optimization solves the issue.🎛 Configuration (.babelrc, package.json, cli command)
Package.json deps
CLI command:
npx parcel build Views/**/*.html --dist-dir GUI
🤔 Expected Behavior
Frontend files should build without issue.
😯 Current Behavior
The compilation process fails with the following error:
💁 Possible Solution
No solution found yet.
🔦 Context
Cannot build my project in this specific linux machine because of this.
💻 Code Sample
🌍 Your Environment