Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

JSX parsing error on .tsx #376

Closed
Closed
@mizchi

Description

@mizchi

What version of TypeScript are you using?

2.4

What version of typescript-eslint-parser are you using?

7.0.0

What code were you trying to parse?

import * as React from 'react'
type Props = {
  title: string
}

export default function App(props: Props) {
  return (
    <h1>
      {props.title}
    </h1>
  )
}

What did you expect to happen?

Pass jsx syntax correctly.

What happened?

/Users/mz/sandbox/ts-proj/src/components/App.tsx
  9:12  error  Parsing error: ':' expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions