Skip to content

spfx project upgrade to 1.11: What is going on with @types packages? #1760

Discussion options

You must be logged in to vote

Based on the commands you have highlighted, my hypothesis is that in v1.10 the @types were incorrectly installed as dependencies instead of devDependencies.

  • npm i -DE installs the specified packages as exact versions (E) adding them to the devDependencies section (D) in package.json

  • npm un -S uninstalls the packages specified and removing the packages from the dependencies section (S) in package.json

So after following the upgrade steps you should only have @types displaying in the devDependencies section.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pschaeflein
Comment options

@garrytrinder
Comment options

Answer selected by pschaeflein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants