Skip to content

Angular-cli should use fixed version for typescript #7877

@slavede

Description

@slavede

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.0
node: 6.11.2
os: win32 x64

Repro steps.

Create new project with ng new <project>

The log given by the failure.

When building project you will get warning:

[INFO] 
[INFO] @angular/compiler-cli@4.4.4 requires typescript@'>=2.1.0 <2.4.0' but 2.5.3 was found instead.
[INFO] Using this version can result in undefined behaviour and difficult to debug problems.
[INFO] 
[INFO] Please run the following command to install a compatible version of TypeScript.
[INFO] 
[INFO]     npm install typescript@'>=2.1.0 <2.4.0'

And sometimes it will fail (depending on your code) if you build it after you have generated your project.

I have generated project and in the moment of time typescript was at 2.3.2, but after we've started building it on CI it started to fail because it started to install 2.5.x version.

Desired functionality.

Angular cli should define exact version of typescript (maybe some other dependencies too). In this case to 2.3.2

Mention any other details that might be useful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions