spfx project upgrade to 1.11: What is going on with @types packages? #1760
-
In the output of
They are also included in the third command, which is uninstall.
While not necessarily a bug, should this be streamlined? Happy to open an issue if appropriate. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Based on the commands you have highlighted, my hypothesis is that in v1.10 the
So after following the upgrade steps you should only have |
Beta Was this translation helpful? Give feedback.
Based on the commands you have highlighted, my hypothesis is that in v1.10 the
@types
were incorrectly installed asdependencies
instead ofdevDependencies
.npm i -DE
installs the specified packages as exact versions (E) adding them to thedevDependencies
section (D) inpackage.json
npm un -S
uninstalls the packages specified and removing the packages from thedependencies
section (S) inpackage.json
So after following the upgrade steps you should only have
@types
displaying in thedevDependencies
section.