Skip to content

ng lint warnings cannot read property of undefined #5585

@Martin-Luft

Description

@Martin-Luft

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [ ] feature request

Versions.

@angular/cli: 1.0.0-rc.4
node: 7.7.3
os: linux x64
@angular/common: 2.4.10
@angular/compiler: 2.4.10
@angular/core: 2.4.10
@angular/forms: 2.4.10
@angular/http: 2.4.10
@angular/platform-browser: 2.4.10
@angular/platform-browser-dynamic: 2.4.10
@angular/router: 3.4.10
@angular/cli: 1.0.0-rc.4
@angular/compiler-cli: 2.4.10

Repro steps.

ng new test123
cd test123
ng lint

-> all ok

add "no-unnecessary-qualifier": true and "promise-function-async": true to tslint.json

ng lint --type-check

The log given by the failure.

Warning: Cannot read property 'exports' of undefined
Warning: Cannot read property 'flags' of undefined
Warning: Cannot read property 'members' of undefined

Desired functionality.

No warnings.

Mention any other details that might be useful.

When I use webpack 2.3.1, tslint 4.5.1 and codelyzer 2.0.1 without angular-cli I get no warnings with this rules.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenteffort1: easy (hours)freq1: lowOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions