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

error in Project References when add new file #798

Open
holynewbie opened this issue Feb 17, 2023 · 1 comment
Open

error in Project References when add new file #798

holynewbie opened this issue Feb 17, 2023 · 1 comment
Labels

Comments

@holynewbie
Copy link

Current behavior

when "composite": true is in tsconfig.json ,add a new file and quote it in somewhere, it issue an error

image

Expected behavior

don't issue an error

Steps to reproduce the issue

package.json

{
  "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"
  }
}

tsconfig.json

{
  "compilerOptions": {
    "composite": true,
    "target": "es2016",
    "module": "commonjs",
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "strict": true,
  }
}

webpack.config.js

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.

a.mp4

Issue reproduction repository

Environment

  • fork-ts-checker-webpack-plugin: [version from the package.json]
  • typescript: [version from the package.json]
  • eslint: [version from the package.json]
  • webpack: [version from the package.json]
@holynewbie holynewbie added the bug label Feb 17, 2023
@piotr-oles
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants