sorrycc / roadhog

🐷 Cli tool for creating react apps, configurable version of create-react-app.
2.72k stars 342 forks source link

exit ts error but build success #865

Open FunctionRun opened 5 years ago

FunctionRun commented 5 years ago

Environment

I defined a variable t , tsc show error, but roadhog dev success

// Type '9' is not assignable to type 'string'.ts(2322)
const t: string = 9;

tsconfig.json

{
    "compilerOptions": {
        "module": "es6",
        "outDir": "lib",
        "target": "es6",
        "noUnusedLocals": true,
        "noEmitOnError": true,
        "moduleResolution": "node",
        "jsx": "react",
        "noEmit": true,
        "checkJs": false
    },
    "include": ["./src/**/*.ts"]
}

how to make roadhog compile faild ?