Skip to content

ForkTSCheckerWebpackPlugin given wrong API schema #1563

@Huespal

Description

@Huespal

Hello :)

What is the current behaviour?
Build is not completed due to a validation error.

Steps to Reproduce
Run preact build from a terminal on a Preact project.

What is the expected behaviour?
Build is completed without errors.

Please mention any other relevant information
The error is this:

✖ ERROR ValidationError: Invalid configuration object. ForkTsCheckerWebpackPlugin has been initialized using a configuration object that does not match the API schema.
 - configuration has an unknown property 'silent'. These properties are valid:
   object { async?, typescript?, eslint?, formatter?, issue?, logger? }

And continues with the error trace.

Project is using webpack 4, and Typescript 4.2.4.

It was not happening a week before. Nothing from the code has changed.

So the error has come with preact-cli v3.2.0. With v3.1.0 is working as expected.

tsconfig.js file

{
  "compilerOptions": {
    "allowJs": true,
    "allowSyntheticDefaultImports": true,
    "jsx": "preserve",
    "jsxImportSource": "preact",
    "jsxFactory": "h",
    "jsxFragmentFactory": "Fragment",
    "lib": ["dom", "esnext"],
    "moduleResolution": "node",
    "noEmit": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "preserveConstEnums": true,
    "removeComments": false,
    "skipLibCheck": true,
    "sourceMap": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "esModuleInterop": true,
    "resolveJsonModule": true,
    "isolatedModules": true
  },
  "exclude": ["build/**/*", "node_modules/**/*.*"],
  "include": ["**/*.ts", "**/*.tsx"]
}
Environment Info:
  System:
    OS: macOS 11.3.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 15.2.1 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.11.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 90.0.4430.212
    Firefox: 87.0
    Safari: 14.1
  npmPackages:
    preact: 10.5.13 => 10.5.13 
    preact-cli: ^3.2.0 => 3.2.0 
    preact-render-to-string: 5.1.19 => 5.1.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions