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]: tsc --skipLibCheck false reports errors #7511

Closed
JounQin opened this issue Aug 9, 2024 · 3 comments
Closed

[Bug]: tsc --skipLibCheck false reports errors #7511

JounQin opened this issue Aug 9, 2024 · 3 comments
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@JounQin
Copy link

JounQin commented Aug 9, 2024

System Info

  System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 20.53 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.4 - ~/.local/state/fnm_multishells/68940_1723172287866/bin/node
    Yarn: 3.8.1 - ~/.local/state/fnm_multishells/68940_1723172287866/bin/yarn
    npm: 10.7.0 - ~/.local/state/fnm_multishells/68940_1723172287866/bin/npm
    bun: 1.1.22 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 127.0.6533.100
    Safari: 17.5

Details

node_modules/@rspack/core/dist/config/zod.d.ts:5207:37 - error TS2589: Type instantiation is excessively deep and possibly infinite.

5207 export declare const rspackOptions: z.ZodObject<{
                                         ~~~~~~~~~~~~~
5208     name: z.ZodOptional<z.ZodString>;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ... 
8353     } | undefined;
     ~~~~~~~~~~~~~~~~~~
8354 }>;
     ~~

node_modules/@rspack/core/dist/config/zod.d.ts:5207:49 - error TS2344: Type '{ name: z_ZodOptional<ZodString>; dependencies: z_ZodOptional<z_ZodArray<ZodString, "many">>; entry: z_ZodOptional<z_ZodUnion<[z_ZodUnion<...>, z_ZodFunction<...>]>>; ... 26 more ...; performance: z_ZodOptional<...>; }' does not satisfy the constraint 'ZodRawShape'.
  Property 'target' is incompatible with index signature.
    Type 'z_ZodOptional<z_ZodUnion<[z_ZodUnion<[z_ZodLiteral<false>, z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodUnion<[z_ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", ... 6 more .....' is not assignable to type 'ZodTypeAny'.
      The types returned by 'brand(...)' are incompatible between these types.
        Type 'ZodBranded<ZodOptional<z_ZodUnion<any>>, any>' is not assignable to type 'ZodBranded<ZodType<any, any, any>, any>'.
          Type 'ZodOptional<z_ZodUnion<any>>' is missing the following properties from type 'ZodType<any, any, any>': _type, _output, _input, _def, and 31 more.

5207 export declare const rspackOptions: z.ZodObject<{
                                                     ~
5208     name: z.ZodOptional<z.ZodString>;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ... 
7383     }>, z.ZodLiteral<false>]>>;
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7384 }, "strict", z.ZodTypeAny, {
     ~

node_modules/@rspack/core/dist/ResolverFactory.d.ts:34:56 - error TS2694: Namespace '"/Users/JounQin/Workspaces/GitHub/backstage/node_modules/@rspack/core/compiled/enhanced-resolve/index"' has no exported member 'Resolver'.

34 type Resolver = import("../compiled/enhanced-resolve").Resolver;
                                                          ~~~~~~~~

node_modules/@rspack/core/dist/ResolverFactory.d.ts:35:62 - error TS2694: Namespace '"/Users/JounQin/Workspaces/GitHub/backstage/node_modules/@rspack/core/compiled/enhanced-resolve/index"' has no exported member 'ResolveOptions'.

35 type ResolveOptions = import("../compiled/enhanced-resolve").ResolveOptions;
                                                                ~~~~~~~~~~~~~~


Found 4 errors in 2 files.

Errors  Files
     2  node_modules/@rspack/core/dist/config/zod.d.ts:5207
     2  node_modules/@rspack/core/dist/ResolverFactory.d.ts:34

Reproduce link

backstage/backstage#25953

Reproduce Steps

yarn tsc:full

@JounQin JounQin added bug Something isn't working pending triage The issue/PR is currently untouched. labels Aug 9, 2024
Copy link

stale bot commented Oct 8, 2024

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Oct 8, 2024
@hardfist
Copy link
Contributor

hardfist commented Oct 8, 2024

bump

@stale stale bot removed the stale label Oct 8, 2024
@SoonIter
Copy link
Member

SoonIter commented Oct 8, 2024

it seems it has been fixed in #8029

@JounQin JounQin closed this as completed Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

3 participants