Skip to content

npm run build is broken at type checking step #1976

@Serabe

Description

@Serabe

Stencil version:

 @stencil/core@1.7.4

I'm submitting a:

[x] bug report

Current behavior:
Running npm run build fails because of the following typescript type checking error:

[ ERROR ]  TypeScript: node_modules/@stencil/core/dist/declarations/testing.d.ts:4:19
           All declarations of 'Matchers' must have identical type parameters.

      L3:  namespace jest {
      L4:      interface Matchers<R> {
      L5:          /**

[ ERROR ]  TypeScript: node_modules/@types/jest/index.d.ts:639:15
           All declarations of 'Matchers' must have identical type parameters.

    L638:  // should be R extends void|Promise<void> but getting dtslint error
    L639:  interface Matchers<R, T> {
    L640:      /**

Expected behavior:

npm run build should succeed in an application without errors.

Steps to reproduce:

Just starting a new stencil application or component and updating @stencil/core to 1.7.4 will do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions