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

3 Answers 3

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).

Sign up to request clarification or add additional context in comments.

2 Comments

This worked for me...I was having trouble on Windows builds where Linux builds worked as-is. Gulp won't update to 4 on Windows - gets to 3.9.
This should be the accepter answer. Thanks for your help ;-)
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.

Comments

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 [email protected] 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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.