dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[QUESTION] Build from Source not working anymore 2.1.2?

Open nicedevil007 opened this issue 1 year ago • 3 comments

Question

Heya guys,

I have my installation on an AlmaLinux 9.3 and I was running NPM 16.x before. I used the deployment guide from here https://dashy.to/docs/deployment#build-from-source.

Now the eror is looking like this: image

If I use version 17 I get the errors with the dependencies. (See question 1)

If I use a newer version than 17 for NPM I get this error image

So questions are:

  1. How to get rid of these errors?
warning " > [email protected]" has unmet peer dependency "eslint-plugin-import@^2.22.1".
warning " > [email protected]" has unmet peer dependency "eslint-plugin-jsx-a11y@^6.4.1".
warning " > [email protected]" has unmet peer dependency "eslint-plugin-react@^7.21.5".
warning " > [email protected]" has unmet peer dependency "eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0".
warning "eslint-config-airbnb > [email protected]" has unmet peer dependency "eslint-plugin-import@^2.22.1".
warning " > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
warning Workspaces can only be enabled in private projects.
  1. Is there any plan to update everything to any newer versions of NPM in the future?

I already tried useing npm (https://github.com/Lissy93/dashy/blob/master/docs/troubleshooting.md#yarn-error) instead of yarn, same thing here.

Category

Setup and Deployment

Please tick the boxes

nicedevil007 avatar Mar 04 '24 18:03 nicedevil007

That currently a know problem where github actions fails to build the image to docker when node is higher than 18 LTS, so we temporarly set BUILD_ENV down to 18 LTS but kept normal node when running the image at 20 LTS.

For a temporary fix you could use node 17 LTS.

CrazyWolf13 avatar Mar 07 '24 18:03 CrazyWolf13

For the The engine "node" is incompatible with this module error specifically, try running with the --ignore-engines

E.g. yarn install --ignore-engines should fix this. And that will work with Node LTS (21.11.1) or later.

@CrazyWolf13 - I think since the GH actions & Docker thing, is a bug with the Alpine + Node base container, whereas OP is building from source, so shouldn't run into that issue. Ahh, the joys of Node.js 😆

Lissy93 avatar Mar 09 '24 22:03 Lissy93

For the The engine "node" is incompatible with this module error specifically, try running with the --ignore-engines

E.g. yarn install --ignore-engines should fix this. And that will work with Node LTS (21.11.1) or later.

@CrazyWolf13 - I think since the GH actions & Docker thing, is a bug with the Alpine + Node base container, whereas OP is building from source, so shouldn't run into that issue. Ahh, the joys of Node.js 😆

confirmed, works like a charm with that :) so should we close this here or do you want to track the fix in general with this issue?

nicedevil007 avatar Mar 10 '24 06:03 nicedevil007

Hi I think we can close this issue, the argument --ignore-engines is only needed on older versions, so there's not really much to do there and for the other issue when building for GH-Actions we are waiting for a upstream fix.

CrazyWolf13 avatar May 10 '24 22:05 CrazyWolf13