Skip to content

Applying latest typescript breaks semver #1425

Closed
@wadetandy

Description

@wadetandy

Version

3.0.0-beta.15

Reproduction link

https://github.com/wadetandy/vue-typescript-version-reproduction

Steps to reproduce

  • Clone
  • yarn install
  • yarn build
  • Observe that there is a type error due to a feature from typescript 2.8, even though my package.json installs 2.6

What is expected?

As discussed in this issue: microsoft/TypeScript#14116 , the Typescript project does not follow a traditional semantic versioning pattern. I would expect to be able to explicitly set the typescript version in my project's package.json (or potentially in the invoke prompts) and have that be picked up by the typescript plugin.

What is actually happening?

The vue-cli-typescript plugin will always use the newest stable version, even if I specify a different version in my project. This has caused some breaking changes in some of our more advanced typings as versions have been upgraded. If not every version can be supported due to underlying changes in the node API, even being able to have a list of supported versions to choose from would be a step in the right direction.

Metadata

Metadata

Assignees

No one assigned

    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