Skip to content

Could not load 'xxx' from memory. #32084

@wnagyouwei

Description

@wnagyouwei

Command

build

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

No response

Description

After upgrading to version 21, when I used ng to build multiple libraries, after installing the tc zjn editor library and then installing tc zjn render, the following error occurred. I am certain that my dependency library tc zjn editor library has been installed, and tc zjn editor. d.ts also exists.

Minimal Reproduction

execution process:
ng build tc-zjn-render
Building Angular Package

Building entry point 'tc-zjn-render'

⠹ Compiling with Angular sources in partial compilation mode.
✔ Compiling with Angular sources in partial compilation mode.

Could not load D:\codes\terrace\dist\tc-zjn-editor\types\tc-zjn-editor.d.ts (imported by dist/tc-zjn-render/tmp-typings/renderer/base-renderer.d.ts): Could not load 'D:\codes\terrace\dist\tc-zjn-editor\types\tc-zjn-editor.d.ts' from memory.

tsconfig:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"noImplicitAny": false,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
"esModuleInterop": true,
"sourceMap": true,
"skipLibCheck": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "bundler",
"importHelpers": true,
"target": "ES2022",
"module": "preserve",
"paths": {
"tc-zjn-dsx": [
"./dist/tc-zjn-dsx"
],
"ecode-identity": [
"./dist/ecode-identity"
],
"tc-zjn-editor": [
"./dist/tc-zjn-editor"
],
"tc-zjn-editor-builtin": [
"./dist/tc-zjn-editor-builtin"
],
"tc-zjn-engine": [
"./dist/tc-zjn-engine"
],
"tc-zjn-materials": [
"./dist/tc-zjn-materials"
],
"tc-zjn-render": [
"./dist/tc-zjn-render"
],
"tc-zjn-setter": [
"./dist/tc-zjn-setter"
],
"tc-zjn-types": [
"./dist/tc-zjn-types"
],
"tc-zjn-utils": [
"./dist/tc-zjn-utils"
]
}
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true,
},
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
},
{
"path": "./projects/tc-zjn-dsx/tsconfig.lib.json"
},
{
"path": "./projects/tc-zjn-editor/tsconfig.lib.json"
},
{
"path": "./projects/tc-zjn-editor-builtin/tsconfig.lib.json"
},
{
"path": "./projects/tc-zjn-engine/tsconfig.lib.json"
},
{
"path": "./projects/tc-zjn-materials/tsconfig.lib.json"
},
{
"path": "./projects/tc-zjn-render/tsconfig.lib.json"
},
{
"path": "./projects/tc-zjn-setter/tsconfig.lib.json"
},
{
"path": "./projects/tc-zjn-types/tsconfig.lib.json"
},
{
"path": "./projects/tc-zjn-utils/tsconfig.lib.json"
}
]
}

Exception or Error

Could not load D:\codes\terrace\dist\tc-zjn-editor\types\tc-zjn-editor.d.ts (imported by dist/tc-zjn-render/tmp-typings/renderer/base-renderer.d.ts): Could not load 'D:\codes\terrace\dist\tc-zjn-editor\types\tc-zjn-editor.d.ts' from memory.

Your Environment

/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI       : 21.0.2
Angular           : 21.0.3
Node.js           : 24.10.0
Package Manager   : npm 11.6.1
Operating System  : win32 x64

┌───────────────────────────────────┬───────────────────┬───────────────────┐
│ Package                           │ Installed Version │ Requested Version │
├───────────────────────────────────┼───────────────────┼───────────────────┤
│ @angular-devkit/build-angular     │ 21.0.2            │ ^21.0.2           │
│ @angular-devkit/schematics        │ 21.0.2            │ ^21.0.2           │
│ @angular/animations               │ 21.0.3            │ ^21.0.3           │
│ @angular/cdk                      │ 20.2.14           │ ^20.2.14          │
│ @angular/cli                      │ 21.0.2            │ ^21.0.2           │
│ @angular/common                   │ 21.0.3            │ ^21.0.3           │
│ @angular/compiler                 │ 21.0.3            │ ^21.0.3           │
│ @angular/compiler-cli             │ 21.0.3            │ ^21.0.3           │
│ @angular/core                     │ 21.0.3            │ ^21.0.3           │
│ @angular/forms                    │ 21.0.3            │ ^21.0.3           │
│ @angular/material                 │ 20.2.14           │ ^20.2.5           │
│ @angular/platform-browser         │ 21.0.3            │ ^21.0.3           │
│ @angular/platform-browser-dynamic │ 21.0.3            │ ^21.0.3           │
│ @angular/router                   │ 21.0.3            │ ^21.0.3           │
│ ng-packagr                        │ 21.0.0            │ ^21.0.0           │
│ rxjs                              │ 7.8.2             │ ~7.8.1            │
│ typescript                        │ 5.9.3             │ ~5.9.2            │
│ vitest                            │ 4.0.15            │ ^4.0.8            │
│ zone.js                           │ 0.15.1            │ ~0.15.0

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions