Skip to content

Silent tsconfig #2025

@HazzMan2409

Description

@HazzMan2409

Describe the Bug

It looks like TypeScript is compiled with the following options:

compilerOptions: {
    module: 'CommonJS',
    moduleResolution: 'node',
}

See https://github.com/just-jeb/angular-builders/blob/master/packages/common/src/load-module.ts#L23

The default module resolution in Angular is now "bundler" and I had my app tsconfig set as such. The docs make you think that the tsconfig for your app is used, but it is not for these options. This caused me compilation errors which were difficult to understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions