-
Notifications
You must be signed in to change notification settings - Fork 15
Fix node versions #899
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
base: develop
Are you sure you want to change the base?
Fix node versions #899
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @rambip , the locked version for graphql-ws seems ok.
For markdown-it, the 14.1.0 version is used in different packages, as you can see below (from my local decidim-app)
decidim-lite@0.1.0 /Users/stephanierousset/code/opensourcepolitics/decidim-app
├─┬ @decidim/core@0.29.4 -> ./packages/core
│ ├─┬ @tiptap/pm@2.1.13
│ │ └─┬ prosemirror-markdown@1.13.2
│ │ └── markdown-it@14.1.0
│ └─┬ graphiql@3.9.0
│ └─┬ @graphiql/react@0.29.0
│ └── markdown-it@14.1.0 deduped
└─┬ @decidim/dev@npm:dev@0.29.4 -> ./packages/dev
└─┬ markdownlint-cli@0.35.0
└─┬ markdownlint@0.29.0
└── markdown-it@13.0.1
Also, I investigate further on the error you encountered with markdown-it (the log you put on Element), and it seems to be linked to uc-micro version. May be you could update uc-micro package (my version is 2.1.0) and try again with the 14.1.0 version of markdown-it ?
|
Ok, I think found the culprit(s). The problem is that in this current configuration, I get 2 different incompatible One dependant is There is a version mismatch: graphiql an tiptap use a version of My original fix was correct. It may be better to downgrade graphiql and tiptap though. |
26f9555 to
9fd3f66
Compare
|
Hello @rambip , moustachu has spotted that your version of decidim was 0.29.3 (@decidim/core@0.29.3), while mine is 0.29.4. May be it can explain why I don't experience your problem. Now develop is on 0.29.5. Could you try to update your branch to latest develop commit and see if you still have the same problem 🙏 ? |
|
No, it does not. I also checked that the 0.29.5 of decidim core used the old markdown-lint cli, and it it the case (see here ) I don't know exactly why we don't get the same error, but probably because we don't have the same |
|
PR #862 changed the recommended node version from 18 to 22, that might be enough to fix this issue. Since the docker image build without error, I think we can close this PR. |
🎩 Description
graphql-wsThis pull request add a constraint to the
graphql-wsdependency. Without it, the app can't be installed.This change is needed since graphql-ws version 6.0.0 was released, 9 months ago.
Version 6.0 and above now requires node engine version superior to 20, which is not the case in this repo (v18).
markdown-itWith the current state of this repository, I was not able to run
bundle exec rake assets:precompileI included a downgrade of the
markdown-itlibrary to be able to run the app.Testing
N/A
With this change, I was able to install the app, and I checked that the version matched with other member of the team.
I don't know if the file is used by docker, maybe I should check that ?
📌 Related Issues
Fixes #898
Fixes #900
Tasks
N/A
📷 Screenshots
N/A
Extra information