
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:
Here is link for your reference:
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