Adding 'ts' breaks jsx
See original GitHub issueHave added ‘ts’ to my stack and as a result am getting
ERROR in ./src/client/index.jsx
Module parse failed: Unexpected token (17:9)
You may need an appropriate loader to handle this file type.
| let frontendReloadCount = 0;
|
| render(<Main key={frontendReloadCount} />, root);
|
| if (module.hot) {
@ multi babel-polyfill webpack-hot-middleware/client ./src/client/index.jsx
Maybe related to #9 Am on spinjs v0.4.20
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
[TS 4.1] react-jsx breaks a type:module package · Issue #41623
When using the new jsx: react-jsx flag, the emitted files should point to react/jsx-runtime.js instead of react/jsx-runtime . Otherwise Webpack ...
Read more >Problem with Visual Studio Code using "react-jsx" as jsx value ...
tsx is opened, click on TS version (right bottom), then "Select TypeScript version" -> "Use VS Code's Version") also works. Save this answer....
Read more >Using JSX with TypeScript - Minko Gechev
tsx file reference from .ts file? I tried to add reference but no luck. Can you update your blog post with final output...
Read more >Setting TypeScript For Modern React Projects Using Webpack
To add TypeScript to a Create React App project, first install it and its ... When webpack sees any file with the extension...
Read more >Introducing the New JSX Transform – React Blog
Together with the React 17 release, we've wanted to make a few improvements to the JSX transform, but we didn't want to break...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@msaspence Should be supported in
spinjs@0.4.25
and later@vlasenko it works fine now.