How to use latest node 16 for spfx SharePoint 2019 on prem

suyog Mahindrakar 20 Reputation points
2023-10-05T12:40:50.8066667+00:00

We want to set up SPFx on SharePoint 2019 on-prem , As per Microsoft we need to use below version, But I want to use latest node js say 12 or 14 , but it is not working , please help me on thisUser's image

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-10-06T01:46:39.1566667+00:00

    Hi @suyog Mahindrakar

    From the official documentation, because SharePoint Server 2019 only supports SharePoint Framework versions that match the server-side dependencies of the deployed package.

    If you are using the latest Node.js version, such as 12 or 14, you may encounter some compatibility issues or bugs.

    Official solutions are also provided: For your reference:

    User's image

    Here is link for your reference:

    https://learn.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-2019-and-subscription-edition-support


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Fen


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.