-
Notifications
You must be signed in to change notification settings - Fork 61
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
Node.js upgrade to v18 along with dependency upgrades and linting fixes #645
base: release-v4
Are you sure you want to change the base?
Conversation
Before I actually update the changelog file, please let me know how my notes look in the PR. |
Noting we must update the Node.js version in Netlify before merging |
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.
Thank you @bjester! This looks great to me 👐, I left just some questions. And just a small note: Could you add your changelog items to CHANGELOG.md please?
- Node.js 10.x (see [Node Version Manager](https://github.com/nvm-sh/nvm)) | ||
- Yarn 1.x | ||
- Node.js 18.x (see [Node Version Manager](https://github.com/nvm-sh/nvm)) | ||
- Yarn >=1.22.22 |
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.
Now when I run yarn lint
, yarn dev
I get this error because I dont have pnpm installed:
> yarn lint
yarn run v1.22.22
$ kolibri-tools lint --pattern '**/*.{js,vue,scss,less,css}' --ignore '**/node_modules/**,**/.nuxt/**,**/dist/**,**/lib/KIcon/precompiled-icons/**,**/lib/keen/**,**/docs/environment.js,**/docs/jsdocs.js'
Kolibri CLI: Error: Command failed: "pnpm --version"
stderr:
Volta error: Could not find executable "pnpm"
Use `volta install` to add a package to your toolchain (see `volta help install` for more info).
Error details written to /home/alexvelezll/.volta/log/volta-error-2024-05-27_11_10_15.764.log
original error message:
Command failed: pnpm --version
Volta error: Could not find executable "pnpm"
Use `volta install` to add a package to your toolchain (see `volta help install` for more info).
Error details written to /home/alexvelezll/.volta/log/volta-error-2024-05-27_11_10_15.764.log
error Command failed with exit code 1.
Does the new version of kolibri-tools require pnpm to be installed? If so I think we need to add this to our prerequisites.
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.
There should be no requirement on pnpm
-- nothing in regards to that has changed.
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.
Have you previously run a corepack
command on your system?
I don't think this will resolve the issue, but you could try adding export SKIP_YARN_COREPACK_CHECK=1
to your terminal env.
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.
Hmm, no, that didn't solve it. It's weird because I tried to run it on my Windows machine, where I also don't have Pnpm, and it worked there 🤔
In my Ubuntu machine I finally installed pnpm using volta install pnpm
and then yarn lint
worked.
Hmm linting was passing, but now it isn't 🤔 I'll take a look |
Thank you, @bjester, to me it looks well and clear, and I appreciate the guidance |
Hi @bjester, thanks a lot - lots of work! I've switched to this branch, then
Can you see something problematic in the log above or have some recommendations on how to best proceed with debuggin? |
Good news is that I could successfully run
So it is only |
import KTextBox from '../KTextbox'; | ||
|
||
let uuid = 0; |
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.
If we used the same approach from another component (instead of using uuid
library), could there be any conflicts?
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.
Only if the ID prefix wasn't already unique
}; | ||
return defaultValue; | ||
} | ||
// Avoid accessing unset indices through `this.ratio` |
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.
Nice
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.
Also just read the code and haven't noticed any issues, just have one question about uuid
@bjester Upgrading yarn to v1.22.22 as discussed helped me with |
I have replicated @MisRob's issue. It seems to stem from incompatibility with hoisted postcss packages. I will look at fixing it |
I will unassign myself from the asigned reviewer role for now since everything is reviewed at this point. So that I don't block another round of review as I will be away for two weeks, back on July 8. If it's still open when I'm back and I can help, please ping me :)! Thanks. |
Description
Upgrades Node.js to v18, along with Kolibri-Tools to v0.16, Jest to v29 and Nuxt to v2.15. Additionally, this pins dependencies in order to maintain compatibility between Nuxt and kolibri-tools, applies fixes for new linting errors, and cleans up testing output through better error handling.
Issue addressed
Addresses #439
Changelog
[Node.js upgrade to v18 along with dependency upgrades and linting fixes #645]
[Node.js upgrade to v18 along with dependency upgrades and linting fixes #645]
@error
listener to avoid polluting test output, nor suppressingconsole.*
in testsKImg
,KTabs
,KTabsList
KImg
component may now emit anError
object in its@error
listener when incorrectly configured, in addition to anUiEvent|Event
when an image fails to load. Consumers should type check the value.Steps to test
yarn run test
yarn run dev
(optional) Implementation notes
At a high level, how did you implement this?
Does this introduce any tech-debt items?
Yes #646
Testing checklist
Reviewer guidance
After review
CHANGELOG.md
Comments