Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Breaks on valid JSX code #123

Closed
datenreisender opened this issue Sep 11, 2018 · 0 comments · Fixed by #124
Closed

Breaks on valid JSX code #123

datenreisender opened this issue Sep 11, 2018 · 0 comments · Fixed by #124

Comments

@datenreisender
Copy link

TL&DR: Please update the tippex dependency.

Release 0.8.1 of rollup-plugin-typescript breaks on this JSX code:

import * as React from 'react';
const S = () => <span><img src="s" /></span>;
const C = () => {return <div />; };

The error message is:

[!] (Plugin at pos 6 plugin) Error: rollup-plugin-typescript: Unexpected character (3:34). If this is valid JavaScript, it's probably a bug in tippex. Please raise an issue at https://github.com/Rich-Harris/tippex/issues – thanks!


const C = () => {return <div />; };

                                   ^; when processing: '…

As noted, this is a problem with tippex, but only with the outdated version 2. When using the same code in the test suite of tippex 3, the error did not occur anymore.

So, please upgrade the tippex depedency to version 3.

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

Successfully merging a pull request may close this issue.

1 participant