nx
Nx
GitHub
Nx
Workspace
GitHub
CI Pipeline Executions
Filtered
Runs
Demo
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
Overview
⌘K
Nx
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
master
2ecb611a fix(module-federation): strip version suffix from npm dependency names for bun compatibility (#34960) ## Current Behavior When using Bun as the package manager, the Nx project graph includes version numbers in external node dependency targets (e.g., `npm:@ngrx/store@21.0.1`), whereas npm uses `npm:@ngrx/store` (without version). The `collectDependencies` function in `packages/module-federation/src/utils/dependencies.ts` strips the `npm:` prefix but not the version suffix, resulting in package names like `@ngrx/store@21.0.1` being passed to `sharePackages()`. These fail to match entries in `package.json` (which uses `@ngrx/store`), so **no npm packages are shared** between Module Federation host and remotes, causing runtime errors such as: ``` NG0201: No provider found for InjectionToken @ngrx/store Root Store Provider ``` ## Expected Behavior The version suffix is stripped from npm dependency names before they are added to the shared packages set. For example: - `@ngrx/store@21.0.1` -> `@ngrx/store` - `rxjs@7.8.1` -> `rxjs` - `lodash` (no version) -> `lodash` (unchanged) This ensures shared packages are correctly resolved regardless of the package manager (npm, pnpm, yarn, or bun). ## Related Issue(s) https://github.com/nrwl/nx/issues/35135 Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
by Thees Heng...
T
Failed
master
2ecb611a fix(module-federation): strip version suffix from npm dependency names for bun compatibility (#34960) ## Current Behavior When using Bun as the package manager, the Nx project graph includes version numbers in external node dependency targets (e.g., `npm:@ngrx/store@21.0.1`), whereas npm uses `npm:@ngrx/store` (without version). The `collectDependencies` function in `packages/module-federation/src/utils/dependencies.ts` strips the `npm:` prefix but not the version suffix, resulting in package names like `@ngrx/store@21.0.1` being passed to `sharePackages()`. These fail to match entries in `package.json` (which uses `@ngrx/store`), so **no npm packages are shared** between Module Federation host and remotes, causing runtime errors such as: ``` NG0201: No provider found for InjectionToken @ngrx/store Root Store Provider ``` ## Expected Behavior The version suffix is stripped from npm dependency names before they are added to the shared packages set. For example: - `@ngrx/store@21.0.1` -> `@ngrx/store` - `rxjs@7.8.1` -> `rxjs` - `lodash` (no version) -> `lodash` (unchanged) This ensures shared packages are correctly resolved regardless of the package manager (npm, pnpm, yarn, or bun). ## Related Issue(s) https://github.com/nrwl/nx/issues/35135 Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
by Thees Heng...
T
Previous page
Previous
Next
Next page