Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semantic ui, gulp node version issue #25

Open
SigmaOutdoors opened this issue Dec 12, 2019 · 2 comments
Open

semantic ui, gulp node version issue #25

SigmaOutdoors opened this issue Dec 12, 2019 · 2 comments

Comments

@SigmaOutdoors
Copy link

SigmaOutdoors commented Dec 12, 2019

Hey Jay,
I pulled this project a while ago and made some local mods to it, when I try to use the latest version of node js 12.x the entire thing fails to compile with the error below, the only way I could get around it was to downgrade to node js 10.x. Have you seen this or worked around it in any way?

Thanks in advance.

12398 error code ELIFECYCLE
12399 error errno 1
12400 error semantic-ui@2.4.2 install: `gulp install`
12400 error Exit status 1
12401 error Failed at the semantic-ui@2.4.2 install script.
12401 error This is probably not a problem with npm. There is likely additional logging output above.
12402 verbose exit [ 1, true ] 
@jayhamilton
Copy link
Contributor

I updated a fork of this repo to Angular 8. But that was several months ago. I am considering moving to Angular 9. Try that.

@SigmaOutdoors
Copy link
Author

Thanks Jay,

One of my developers tried to move to Angular 9 and had issues and bailed on it for now, mainly it was with the ng2-dnd module not working in A9. He tried to use native angular dnd but we time boxed his efforts and he shelved it for now. As for the other issue, here are my chicken scratch notes on what I did to get around it (maybe this can help you) :

2019-12-23

In order to try and upgrade node.js needed to remove the dependency on semantic-ui which seems to have been abandoned and taken over by a public fork called fomantic-ui as per this link below.

Node JS and Semantic Issue

What I did was :

npm uninstall semantic-ui
// now you're missing lodash which must have come with semantic-ui so install that
npm install lodash
npm install fomantic-ui

Update any references (there were 4 refs) in angular.json to change directory of semantic-ui -> fomantic-ui as shown below
NOTE it is just the directory, fomantic-ui gens the same dist files with the semantic name.

"node_modules/semantic-ui/dist/semantic.min.js"
"node_modules/fomantic-ui/dist/semantic.min.js"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants