Skip to content

Import codefix uses too-deep path #32222

@jpike88

Description

@jpike88

TypeScript Version: 3.5.2

Search Terms: import @angular/compiler/src/core

When auto-importing ChangeDetectionStrategy in angular 8, this line gets pulled in, which breaks production builds.

Expected behavior:

import { Component, Input, ChangeDetectionStrategy } from '@angular/core';

Actual behavior:

import { Component, Input } from '@angular/core';
import { ChangeDetectionStrategy } from '@angular/compiler/src/core';

Might be related to this, which was marked as fixed and locked

#19694

Metadata

Metadata

Assignees

Labels

Needs More InfoThe issue still hasn't been fully clarified

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions