verekia / js-stack-from-scratch

🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
MIT License
20.05k stars 1.99k forks source link

ESLint Error for Flow Type alias declaration #226

Closed kashtrip closed 7 years ago

kashtrip commented 7 years ago

Chapter: 05 - Redux, Immutable, and Fetch

Error: 'Props' is not defined. (no-undef)

In Button.jsx, the following code throws the above ESlint error.

type Props = {
  label: string,
  handleClick: Function,
}

flowtype plugin is configured in my .eslintrc.json.

verekia commented 7 years ago

Can you try to reproduce it using the code from the walkthrough, and then upgrade your flow / eslint packages to more recent versions than the walkthrough to try to identify the issue more precisely?

kashtrip commented 7 years ago

Tried to follow through from the beginning once more. Didn't come across the issue now. Thanks!