Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

Cannot read property 'toJSON' of undefined #453

@jrgleason

Description

@jrgleason

I have a project here that uses ngc. However, when I compile the project using TS 2.2.2 and the command ./node_modules/.bin/ngc -p src/lib/tsconfig.json I get the following error...

TypeError: Cannot read property 'toJSON' of undefined
    at Object.sourceMapGeneratorToConsumer (.../node_modules/tsickle/build/src/source_map_utils.js:65:42)
    at TsickleCompilerHost.combineSourceMaps (.../flex-layout/node_modules/tsickle/build/src/tsickle_compiler_host.js:167:74)
    at TsickleCompilerHost.writeFile (.../flex-layout/node_modules/tsickle/build/src/tsickle_compiler_host.js:111:28)
    at Object.writeFile (.../flex-layout/node_modules/typescript/lib/typescript.js:64240:132)
    at Object.writeFile (.../flex-layout/node_modules/typescript/lib/typescript.js:9020:14)
    at printSourceFileOrBundle (.../flex-layout/node_modules/typescript/lib/typescript.js:61197:20)
    at emitSourceFileOrBundle (.../flex-layout/node_modules/typescript/lib/typescript.js:61155:21)
    at Object.forEachEmittedFile (.../flex-layout/node_modules/typescript/lib/typescript.js:8986:17)
    at Object.emitFiles (.../flex-layout/node_modules/typescript/lib/typescript.js:61137:12)
    at emitWorker (.../flex-layout/node_modules/typescript/lib/typescript.js:64294:33)

I would expect that this is probably related to using TS 2.2

#447

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions