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

[Bug]: Tsconfig not found issue during build #3994

Closed
Snake-Master opened this issue Nov 16, 2024 · 9 comments
Closed

[Bug]: Tsconfig not found issue during build #3994

Snake-Master opened this issue Nov 16, 2024 · 9 comments
Labels
bug Something isn't working 🦀 Rspack related

Comments

@Snake-Master
Copy link

Version

System:
    OS: Linux 5.14 CentOS Linux 7 (Core)
    CPU: (2) x64 Intel(R) Xeon(R) CPU E5-4650 v2 @ 2.40GHz
    Memory: 2.94 GB / 3.84 GB
    Container: Yes
    Shell: 4.2.46 - /bin/bash
  npmPackages:
    @rsbuild/core: ^1.0.19 => 1.1.2 
    @rsbuild/plugin-react: ^1.0.6 => 1.0.7

Details

Image

Reproduce link

无需仓库,官网的例子, 没有任何修改

Reproduce Steps

直接使用 pnpm create rsbuild@latest 的 react typescript 的模板生成项目。

未作任何修改 pnpm install 后执行 pnpm build 就报 Tsconfig not found 编译不下去。

@Snake-Master Snake-Master added the bug Something isn't working label Nov 16, 2024
@chenjiahan chenjiahan changed the title [Bug]: build 时 Tsconfig not found 的问题 [Bug]: Tsconfig not found issue during build Nov 16, 2024
@chenjiahan
Copy link
Member

chenjiahan commented Nov 17, 2024

Ref: #3985

It looks like there is a problem with the Rspack resolver on Centos 7.

Can you try downgrading @rspack/core to 1.1.0 or 1.0.14? This will help us identify the version that introduced the regression.

For example, use pnpm overrides:

// package.json
{
  "pnpm": {
    "overrides": {
      "@rspack/core": "1.1.0"
    }
  }
}

@Snake-Master
Copy link
Author

Ref: #3985

It looks like there is a problem with the Rspack resolver on Centos 7.

Can you try downgrading @rspack/core to 1.1.0 or 1.0.14? This will help us identify the version that introduced the regression.

For example, use pnpm overrides:

// package.json
{
"pnpm": {
"overrides": {
"@rspack/core": "1.0.14"
}
}
}

The build was completed when the version of @rspack/core was downgraded to 1.1.0. tks for your support.

@ayangweb
Copy link

ayangweb commented Nov 18, 2024

Image

@chenjiahan I am experiencing this with rspress, how do I downgrade?

@chenjiahan
Copy link
Member

The same as #3994 (comment)

@ayangweb
Copy link

The same as #3994 (comment)

Okay, thanks. That'll do.

@chenjiahan
Copy link
Member

I have released https://github.com/web-infra-dev/rsbuild/releases/tag/v1.1.3 to pin Rspack 1.1.0 and this should fix the problem.

@ayangweb
Copy link

That's fine. No problem.

@chenjiahan
Copy link
Member

Fixed in Rspack v1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🦀 Rspack related
Projects
None yet
Development

No branches or pull requests

3 participants