-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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 on node 18 #163334
Closed
Closed
build on node 18 #163334
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@microsoft-github-policy-service agree |
'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`
Module x has no default export
Could not find a declaration file for module x
…ameter of type 'string | Options | ((path: ParsedPath, file: File) => void | ParsedPath)'.
…ter of type 'never'.
…of type 'Architecture | undefined'.
…ameter of type 'string'. Type 'null' is not assignable to type 'string'.
… parameter of type 'Position'.
TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'.
… of type 'never'.
…ames: never[]; mappings: string; sources: string[]; sourcesContent: string[]; }' but required in type 'RawSourceMap'.
…issing the following properties from type 'Ruler<RuleBlock>':
Migrating to Node 18 is neither something we're currently interested on (because the Electron we're currently based on is based on Node 16 itself), nor something we'd accept as an external contribution. If you'd like to make a contribution to VS Code, I suggest reading our Contribution Guide. Thanks for understanding. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #149580
some dependencies are blocking node 18
so lets "bump all the deps" and downgrade when needed
work in progress ...
vscode/build
vscode/build/lib/nls.ts
- handleposition not found
errorstore the downgraded versions in
resolutions
to protect them fromyarn upgrade --latest
(this is not working with yarn 1)Explore "transpile only" build #150025 (comment)
for me, transpile-client-swc is 14x faster than transpile-client (40 sec vs 570 sec)
fast-compile (swc) is 12x faster than compile (120 sec vs 1470 sec)
40 sec compilation + 40 sec transpile-client-swc = 80 sec
typescript version error when directly running tsc
caused by calling typescript directly with
npx tsc
fix: call typescript via gulp:
npm run gulp compile
etcalso seen in
https://issuehint.com/issue/microsoft/TypeScript/49283
microsoft/TypeScript#50948
fix? somehow disable @node/types for tsc
no fix: upgrade typescript to ^4.9.0-dev.20221005
not related? vscode-nls-dev@4.0.3 is using old versions of typescript
out of scope
pnpm
or Yarn 3 (from Yarn 1) #162803