Skip to content

Project builds successfully although type errors #6

Description

@seleznevds

Hello. Thank you for awesome tutorial and starter pack!
But I found some problem.
If I make a mistake with Typescript code, then build will be created successfully. Also "npm start" will be executed successfully too.
For example:

import { useState } from 'react'

export const Counter = () => {
  let a = 90
  a += 'dfdfdf' //this is error!

  const [count, setCount] = useState(0)
  return (
    <div>
      <h3>Update {a} the count and edit src/App.tsx, state is preserved</h3>
      <button onClick={() => setCount((c) => c + 1)}>Count - {count}</button>
    </div>
  )
}

It is possible to prevent building process or prevent starting app if Typescript errors exists ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions