Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
Milestone
Description
Command
serve
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
21.1
Description
Hi
We upgraded our project from Angular 21.1 to Angular 22.2.4.
After that if we try to run/build the project (ng serve/ng build) we get this error:
SyntaxError: The requested module '@jridgewell/sourcemap-codec' does not provide an export named 'encodeRangeMappings'
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:528:17)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:353:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1675:24)
at Module._compile (node:internal/modules/cjs/loader:1838:5)
at Object..js (node:internal/modules/cjs/loader:1996:10)
at Module.load (node:internal/modules/cjs/loader:1579:32)
at Module._load (node:internal/modules/cjs/loader:1381:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1602:12)
at require (node:internal/modules/helpers:191:16)
Minimal Reproduction
Commands run: ng serve/ng build.
Exception or Error
Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI : 22.2.4
Angular : 22.2.3
Node.js : 26.1.0
Package Manager : yarn 4.18.1+sha512.b2e1e7524f654f2749d32b4ebcb4622473cb5bcbc485df2007e12a154e50162a4d795526768bc5f5b8f81717bfd79deb2472813d86fb5ae2eb551fa9c872b08f
Operating System : win32 x64
┌───────────────────────────────────┬───────────────────┬───────────────────┐
│ Package │ Installed Version │ Requested Version │
├───────────────────────────────────┼───────────────────┼───────────────────┤
│ @angular/animations │ 22.2.3 │ ^22.2.3 │
│ @angular/build │ 22.2.4 │ ^22.2.4 │
│ @angular/cdk │ 22.2.4 │ ^22.2.4 │
│ @angular/cli │ 22.2.4 │ ^22.2.4 │
│ @angular/common │ 22.2.3 │ ^22.2.3 │
│ @angular/compiler │ 22.2.3 │ ^22.2.3 │
│ @angular/compiler-cli │ 22.2.3 │ ^22.2.3 │
│ @angular/core │ 22.2.3 │ ^22.2.3 │
│ @angular/forms │ 22.2.3 │ ^22.2.3 │
│ @angular/language-service │ 22.2.3 │ ^22.2.3 │
│ @angular/material │ 22.2.4 │ ^22.2.4 │
│ @angular/platform-browser │ 22.2.3 │ ^22.2.3 │
│ @angular/platform-browser-dynamic │ 22.2.3 │ ^22.2.3 │
│ @angular/router │ 22.2.3 │ ^22.2.3 │
│ rxjs │ 7.8.2 │ ^7.8.2 │
│ typescript │ 6.0.3 │ ~6.0.3 │
│ zone.js │ 0.15.0 │ ~0.15.0 │
└───────────────────────────────────┴───────────────────┴───────────────────┘
Anything else relevant?
We tried to install different Node 26.x versions but without success.
Activity
JeanMeche commentedon Oct 24, 2026
It's likely that you did not update your dependency (or you override the version in your deps) .
encodeRangeMappingswas introduced in@jridgewell/sourcemap-codec@1.6.0angular-automatic-lock-bot commentedon Nov 28, 2026
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.