primordials is not defined in SPFX

g h 716 Reputation points
2020-11-03T02:33:03.64+00:00
C:\Users\admin\Desktop\SharePoint\uiFabricApp\webpart>gulp serve
ReferenceError: primordials is not defined
at fs.js:36:5
at req_ (C:\Users\admin\Desktop\SharePoint\uiFabricApp\webpart\node_modules\natives\index.js:143:24)

Can anyone help me please

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

Accepted answer
  1. ZhengyuGuo 10,586 Reputation points Moderator
    2020-11-03T08:20:01.767+00:00

    Hi @g h ,

    It seems that you are using Node.js v12, downgrade to Node.js v10.x will fix this issue, please check the similiar issue in GitHub:

    ReferenceError: primordials is not defined


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.