Skip to content

chore(deps): use typescript latest version and "module": "NodeNext"#7211

Closed
SoonIter wants to merge 2 commits intoweb-infra-dev:mainfrom
SoonIter:typescript/upgrade
Closed

chore(deps): use typescript latest version and "module": "NodeNext"#7211
SoonIter wants to merge 2 commits intoweb-infra-dev:mainfrom
SoonIter:typescript/upgrade

Conversation

@SoonIter
Copy link
Copy Markdown
Member

@SoonIter SoonIter commented Jul 18, 2024

Summary

  1. have a try to use latest typescript version and "module": "NodeNext"
  2. typescript is also a phantom dependence, we are using the surprising version of tsc which caused local build failed

#4650
#7156

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 18, 2024

Deploy Preview for rspack canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 12db4d7
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66993c086130540008ffba23

@SoonIter SoonIter force-pushed the typescript/upgrade branch from b7a59b6 to 12db4d7 Compare July 18, 2024 16:00
@SoonIter
Copy link
Copy Markdown
Member Author

#4650 (comment)

I think it already been fixed

@SoonIter SoonIter marked this pull request as ready for review July 19, 2024 06:23
@SoonIter SoonIter requested a review from jerrykingxyz as a code owner July 19, 2024 06:23
@SoonIter SoonIter requested a review from chenjiahan July 19, 2024 06:23
{
"compilerOptions": {
"module": "CommonJS", // DO NOT CHANGE: https://github.com/web-infra-dev/rspack/pull/4650
"module": "NodeNext",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can you check the output format difference

@SoonIter
Copy link
Copy Markdown
Member Author

@SoonIter
Copy link
Copy Markdown
Member Author

related to #7142, caused by "typescript" phantom dependencies


```ts

/// <reference types="../jest.d.ts" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why this is removed?

getPromise() {
// @ts-expect-error
const next = i => {
// @ts-expect-error
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why add this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This line should have reported an error, but it was not reported.
latest typescript fixed this

@SoonIter SoonIter marked this pull request as draft July 19, 2024 09:08
@SoonIter
Copy link
Copy Markdown
Member Author

pending with microsoft/TypeScript#59257

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.

3 participants