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

exit ts error but build success #865

Open
FunctionRun opened this issue Apr 16, 2019 · 0 comments
Open

exit ts error but build success #865

FunctionRun opened this issue Apr 16, 2019 · 0 comments

Comments

@FunctionRun
Copy link

Environment

  • roadhog version 2.3.0
  • Nodejs: 8.12.0
  • Npm: 6.4.1
  • Operating environment :macOS Mojave 10.14.3

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 ?

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

No branches or pull requests

1 participant