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]: TS Errors When Running With skipLibCheck: false #9154

Open
adrians5j opened this issue Feb 4, 2025 · 1 comment
Open

[Bug]: TS Errors When Running With skipLibCheck: false #9154

adrians5j opened this issue Feb 4, 2025 · 1 comment
Labels
pending triage The issue/PR is currently untouched.

Comments

@adrians5j
Copy link

System Info

System:
OS: macOS 12.7.6
CPU: (10) arm64 Apple M1 Pro
Memory: 3.70 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 20.18.2 - /usr/local/bin/node
Yarn: 4.6.0 - /opt/homebrew/bin/yarn
npm: 10.2.5 - /opt/homebrew/bin/npm
Browsers:
Brave Browser: 132.1.74.48
Safari: 15.6.1

Details

Note

This issue is similar to the one I described here. This time just have a different TS error that's occurring.

We're building our project which has skipLibCheck:false in one of our build steps.

In that process, build fails with the following TS errors:

Error: [FAILED] ../../node_modules/@rspack/core/compiled/@swc/types/index.d.ts(1,29): error TS2307: Cannot find module './assumptions' or its corresponding type declarations.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2378,57): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2378,92): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2398,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2409,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2425,57): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2425,92): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2439,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2447,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2518,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2540,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2561,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2583,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2709,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2731,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2857,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(2879,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(3029,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(3051,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts([363](https://github.com/webiny/webiny-js/actions/runs/13135499432/job/36649881159#step:6:364)4,31): error TS2315: Type 'Buffer' is not generic.
Error: [FAILED] ../../node_modules/@rspack/core/dist/config/zod.d.ts(3656,31): error TS2315: Type 'Buffer' is not generic.

Dug into the code a bit, and for example, for the first TS2307 error, I can see it:

Image

Reproduce link

No response

Reproduce Steps

In our repo, we've run our build process with the skipLibCheck: false in our TS config. With this setting, we can see the above errors.

@adrians5j adrians5j added the pending triage The issue/PR is currently untouched. label Feb 4, 2025
@DavidReinberger
Copy link

Running in to the same issue after upgrading to 1.2.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

2 participants