4

I know that this question had been asked a lots of times (for instance - here), but either solutions didn't work or didn't fit my scenario. The solution, offered in the link above, was:

Solution: Either upgrade to gulp 4 or downgrade to an earlier node.

So, here's what I have:

• Node: 12.18.1 (node -v)

• Gulp: CLI 2.3.0, Local version 4.0.2 (gulp -v)

I have created brand new react app:

npx create-react-app --template typescript react-app

Then I go to app folder (react-app) and execute the following command as on Semantic UI site:

npm install semantic-ui --save

However, I get the same error as in the question above. Here's the full output of this command: enter image description here

JohnyL
  • 6,894
  • 3
  • 22
  • 41

3 Answers3

9

If you don't want to roll back your version of Node, try using the actively maintained community fork of Semantic UI: Fomantic UI.

Run the command as you would with semantic-ui: npm i fomantic-ui

Fomantic is backwards-compatible with Semantic UI while resolving compatibility issues between Node 12 and Gulp 3 (which another thread references as being the root of the "primordials is not defined" issue).

Chris Perry
  • 6,666
  • 3
  • 11
  • 21
1

Try going back to Node v10. The thing is that Node v12 has a feature that is not compatible with Semantic-UI (Gulp 4.0.2), and that's why you get the error.

Dennis Kozevnikoff
  • 2,078
  • 3
  • 19
  • 29
0

Please try upgrading your node.js to the latest version at https://nodejs.org/en/download/

and also run the following command npm install -g npm@7.0.9 or the latest version to update your npm. After upgrading and updating Node and npm I installed semantic-ui without getting the primordial not defined error.

Codeparl
  • 300
  • 1
  • 8