Open holynewbie opened 1 year ago
when "composite": true is in tsconfig.json ,add a new file and quote it in somewhere, it issue an error
"composite": true
tsconfig.json
don't issue an error
{ "name": "webpack-demo", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "webpack serve" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "fork-ts-checker-webpack-plugin": "^7.3.0", "ts-loader": "^9.4.2", "typescript": "^4.9.5", "webpack": "^5.75.0", "webpack-cli": "^5.0.1", "webpack-dev-server": "^4.11.1" } }
{ "compilerOptions": { "composite": true, "target": "es2016", "module": "commonjs", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, } }
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); module.exports = { mode: 'development', context: __dirname, entry: './src/index.ts', resolve: { extensions: [".ts", ".tsx", ".js"], }, module: { rules: [ { test: /\.tsx?$/, loader: 'ts-loader', } ] }, plugins: [new ForkTsCheckerWebpackPlugin()], watchOptions: { ignored: /node_modules/, }, };
start the app!, and add a new file, quote it in somewhere.
https://user-images.githubusercontent.com/8347286/219620910-70d06703-fc6f-4b58-b7e7-607aa81281a7.mp4
package.json
Thanks for the report - it looks like this issue appears only with newer versions on TypeScript. I can't promise I will take a look at this soon but it's on my radar.
Current behavior
when
"composite": true
is intsconfig.json
,add a new file and quote it in somewhere, it issue an errorExpected behavior
don't issue an error
Steps to reproduce the issue
package.json
tsconfig.json
webpack.config.js
start the app!, and add a new file, quote it in somewhere.
https://user-images.githubusercontent.com/8347286/219620910-70d06703-fc6f-4b58-b7e7-607aa81281a7.mp4
Issue reproduction repository
Environment
package.json
]package.json
]package.json
]package.json
]