ForkTSCheckerWebpackPlugin given wrong API schema
See original GitHub issueHello 😃
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
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
fork-ts-checker-webpack-plugin - npm
Runs typescript type checker and linter on separate process.. Latest version: 7.2.14, last published: 13 days ago.
Read more >Invalid configuration object. Webpack has been initialised ...
Webpack has been initialised using a configuration object that does not match the API schema. - configuration has an unknown property 'postcss'.
Read more >Webpack has been initialized using a configuration object
Webpack has been initialized using a configuration object that does not match the API schema. - configuration.module.rules[10] has an unknown property ...
Read more >vue_hissikutsu/node_modules/fork-ts-checker-webpack ...
Features. Speeds up TypeScript type checking and ESLint linting (by moving each to a separate process); Supports modern TypeScript ...
Read more >invalid configuration object. webpack has been initialized ...
... has been initialised using a configuration object that does not match the API schema ... module.exports = { devtool: isProd ? false...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah it’s an issue from #1465. I’ll try to get that corrected tomorrow morning. I guess we don’t have TS tests so this slipped through. Sorry about that.
Closing as the fix has been merged