-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
chore!: update to Node.js 20 #842
Conversation
Does it bring an added value? |
This is a draft. I did some changes, can you review and continue? |
👍 Seems like pnpm has a bug with Node.js 20? |
Yes, it's fixed in v8.3.1 (source: pnpm/pnpm#6424 (comment)) |
Seems that pnpm v8 only removes Node.js v14 (source: https://github.com/pnpm/pnpm/releases/tag/v8.0.0). |
Ok 👍 |
Related error: cacjs/cac#143 |
Fixed with 099e56e |
Current version of pnpm seems that install exact version instead of the minor one 👀 Fixed lockfiles: Example: pnpm v7.9.5 lockfileVersion: 5.4
vite-plugin-ssr:
specifiers:
cac: ^6.0.0
dependencies:
cac: 6.7.12 // correct: latest of minor pnpm v8.4.0 lockfileVersion: 6
vite-plugin-ssr:
dependencies:
cac:
specifier: ^6.0.0
version: 6.0.0 // problem: this version should be 6.7.12 Related: pnpm/pnpm#6463 |
Seems like the workaround is to set |
I added es-module-lexer:
specifier: ^0.10.0
version: 0.10.0 // wrong: latest of v0 is 0.10.5
esbuild:
specifier: ^0.17.0
version: 0.17.0 // wrong: latest is 0.17.18
fast-glob:
specifier: ^3.0.0
version: 3.0.0 // wrong: latest is 3.2.12 Maybe the problem is related to workspace. |
I think you have to remove the lock file before: |
I always removed it before install. |
Hm. That's weird then. Seems like a pnpm bug or maybe a typo. |
If you want we can close an re-open later once pnpm's discussion about its new resolution strategy settles down? |
I made some minor changes: ffaa24e. |
If nothing changes, I would leave opened because it's visible to further comments from community |
Ok |
Anyway I suggest to set manually the minor version copying from previous lockfile (same |
👍 I think that should work yes. Once the PR is green we can think about what semver/resolution strategy we want to choose. |
Done in acad008 Please can you remove/replace checks of Node v14? |
👍 I'd suggest we create |
In acad008, with esbuil@^0.17.10, In 63ed71f I locked the esbuil version to 0.17.10 (we are sure that this version works). If all dependencies are now same before this PR, why does |
Dependencies of telefunc are outdated: /telefunc-v1/package.json (PASS) "typescript": "^5.0.4",
"vite": "^4.2.2", /telefunc/package.json (FAIL) "typescript": "^4.8.4",
"vite": "^3.0.9"
I think it's safe to install esbuild v0.17.18 (esbuild@^0.17.18) due to same errors of CIs. |
CI / Boilerplates - Ubuntu - Node.js 20 CI / Examples Vue/Others - Ubuntu - Node.js 16 and CI / Examples Vue/Others - Win - Node.js 16 have same error and it should be fixed updating dependencies. |
Indeed, the only blocker left is TypeStrong/ts-node#1997. |
Should we update esbuild to v0.17.18 (esbuild@^0.17.18)? Edit: |
While the VPS repository uses Node.js 20 we can't and shouldn't assume the user to use Node.js 20.
Since Vite is a peer dependency, I'd suggest we take over Vite's dependency semvers. |
Thanks for the PR 💚. |
Changes:
pnpm
version from 7.9.5 to 8.4.0package.json
ofvite-plugin-ssr