catalogicsoftware / ngx-dynamic-dashboard-framework

This is a JSON driven angular x based dashboard framework that is inspired by JIRA's dashboard implementation and https://github.com/raulgomis/angular-dashboard-framework
MIT License
187 stars 95 forks source link

semantic ui, gulp node version issue #25

Open SigmaOutdoors opened 4 years ago

SigmaOutdoors commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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"