krasi1105

Untitled

May 16th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. Correctly handled error ANSI code:
  2. ```
  3. ./src/components/Component/Component.component.tsx
  4. Module Error (from ./node_modules/eslint-loader/index.js):
  5.  
  6. Line 5:1: 'd' is not defined no-undef
  7.  
  8. Search for the keywords to learn more about each error.
  9. ```
  10.  
  11. Incorrectly handled error ANSI code:
  12. ```
  13. /Users/Krasimir/Node/typescript-react-redux-boilerplate/src/components/Component/Component.component.tsx
  14. TypeScript error in /Users/Krasimir/Node/typescript-react-redux-boilerplate/src/components/Component/Component.component.tsx(4,7):
  15. Type '5' is not assignable to type 'string'. TS2322
  16.  
  17.   2 | 
  18.   3 | export interface ComponentProps {}
  19. > 4 | const a: string = 5
  20.   |  ^
  21.   5 | export const Component: FunctionComponent<ComponentProps> = () => {
  22.   6 |  return <h1>Hello world</h1>
  23.   7 | }
  24. ```
Advertisement
Add Comment
Please, Sign In to add comment