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

[build] Use Node.js v18.17.1 (LTS) #3141

Merged

Conversation

vrubezhny
Copy link
Contributor

Fixes: #3121

Fixes: redhat-developer#3121

Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (bc5ad30) 31.99% compared to head (0db1c77) 31.99%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3141   +/-   ##
=======================================
  Coverage   31.99%   31.99%           
=======================================
  Files          74       74           
  Lines        5122     5122           
  Branches      974      974           
=======================================
  Hits         1639     1639           
  Misses       3483     3483           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@mohitsuman mohitsuman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -1 +1 @@
v16.17.1
v18.17.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as a heads up, we can't use any nodejs 18 specific features until VS Code itself runs our extension using NodeJS 18, which will probably land in the September update (which will probably be out mid September)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the Node.js version here doesn't automatically leads to build (or whatever else) to immediately start using the new Node.js version. The version that is currently configured will still be used independently of what you have written in .nvmrc until you apply it by nvm use, won't it"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@rgrunber
Copy link
Member

rgrunber commented Aug 30, 2023

Works well for me. package-lock.json didnt get modified in any way and didn't get any compilation issues.

I would note that even with Node 16, if I remove the package-lock.json and attempt an install from scratch I get an error. But I think this is more related to a newer version of esbuild-plugin-svgr potentially causing a conflict (if/when we updated), so not related.

$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: vscode-openshift-connector@1.7.0
npm ERR! Found: esbuild@0.17.19
npm ERR! node_modules/esbuild
npm ERR!   dev esbuild@"^0.17.19" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer esbuild@"^0.19.1" from esbuild-plugin-svgr@2.1.0
npm ERR! node_modules/esbuild-plugin-svgr
npm ERR!   dev esbuild-plugin-svgr@"^2.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 

@datho7561 datho7561 merged commit 9696158 into redhat-developer:main Aug 30, 2023
5 checks passed
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

Successfully merging this pull request may close these issues.

Node 16 is EOL soon
4 participants