-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Describe the bug
After upgrading from Vendure 3.5.1 to 3.5.2, the Angular Admin UI compilation fails with module resolution errors. The @vendure/admin-ui package's exports field in package.json only exports the root path (.), but the compiled Admin UI extensions attempt to import from subpaths like @vendure/admin-ui/core, @vendure/admin-ui/login, etc., which are no longer exported.
Vendure: 3.5.2 (upgraded from 3.5.1)
Node: v22.12.0
npm: 11.5.2
Angular: 19.2.4
Error count: 200+ compilation errors
Root cause: The exports field in node_modules/@vendure/admin-ui/package.json only includes:
"exports": {
".": { ... }
}
To Reproduce
Package Versions
{
"@vendure/admin-ui": "^3.5.2",
"@vendure/admin-ui-plugin": "3.5.2",
"@vendure/ui-devkit": "3.5.2",
"@vendure/core": "3.5.2",
"@angular-devkit/build-angular": "^19.2.10",
"@angular/animations": "^19.2.9",
"@angular/platform-browser-dynamic": "^19.2.9"
}Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
✘ [ERROR] Could not resolve "@vendure/admin-ui/core"
src/app.module.ts:4:61:
4 │ ...nt, AppComponentModule, CoreModule } from '@vendure/admin-ui/core';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~
The path "./core" is not exported by package "@vendure/admin-ui":
../node_modules/@vendure/admin-ui/package.json:27:15:
27 │ "exports": {
╵ ^
You can mark the path "@vendure/admin-ui/core" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
Screenshots/Videos
If applicable, add screenshots or videos to help explain your problem.