Skip to content

Getting old version of React in the package when create Sharepoint webpart  #5427

@hh747hh

Description

@hh747hh

Category

  • Bug

I have created the Sharepoint webpart by running yo @microsoft/sharepoint and I got all the old versions of react and related packages in package.json.

react

To resolve this issue,

I have removed existing node package and installed the latest version 12.16.1
- when I run npm -v, I get v.12.16.1
ran npm i npm@latest -g
- now npm version 6.15.2
ran npm install @microsoft/generator-sharepoint@latest -g
- now i have @microsoft/generator-sharepoint@1.10.0

but after I upgraded the node/npm and created the new webpart, I still get the old react versions in package.json.

I would need at least react 16.8 or higher version in order to use some of the react libraries.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:spfxCategory: SharePoint Framework (not extensions related)status:answeredAnswer to a question.type:questionQuestion... if answered, will be tagged as such.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions