Command
build
Is this a regression?
The previous version in which this bug was not present was
22.0.9
Description
X [ERROR] Unexpected "const"
node_modules/hugerte/hugerte.js:8184:4:
8184 │ const isContentEditableFalse$6 = isContentEditableFalse$b;
╵ ~~~~~
X [ERROR] Unexpected "const"
node_modules/hugerte/themes/silver/theme.js:1551:4:
1551 │ const fold$1 = (res, onError, onValue) => res.stype === Simp...
ng build error above with @angular/cli v22.1.0 and latest v22.1.3 and no error with v22.0.9
Minimal Reproduction
- Clone https://github.com/tiberiuzuld/repro-app-ts-error
- run ng build
- Observe error
- Change package.json @angular/build & @angular/cli to version 22.0.9
- run ng build
- Observe no error
Exception or Error
Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI : 22.1.0
Angular : 22.1.0
Node.js : 24.19.0
Package Manager : npm 12.0.2
Operating System : win32 x64
┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build │ 22.1.0 │ 22.1.0 │
│ @angular/cli │ 22.1.0 │ 22.1.0 │
│ @angular/common │ 22.1.0 │ 22.1.0 │
│ @angular/compiler │ 22.1.0 │ 22.1.0 │
│ @angular/compiler-cli │ 22.1.0 │ 22.1.0 │
│ @angular/core │ 22.1.0 │ 22.1.0 │
│ @angular/forms │ 22.1.0 │ 22.1.0 │
│ @angular/platform-browser │ 22.1.0 │ 22.1.0 │
│ rxjs │ 7.8.2 │ ~7.8.0 │
│ typescript │ 6.0.3 │ ~6.0.2 │
Anything else relevant?
No response
Command
build
Is this a regression?
The previous version in which this bug was not present was
22.0.9
Description
ng build error above with @angular/cli v22.1.0 and latest v22.1.3 and no error with v22.0.9
Minimal Reproduction
Exception or Error
Your Environment
Anything else relevant?
No response