question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding 'ts' breaks jsx

See original GitHub issue

Have 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:closed
  • Created 6 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
larixercommented, Nov 2, 2017

@msaspence Should be supported in spinjs@0.4.25 and later

0reactions
veeramarnicommented, Nov 3, 2017

@vlasenko it works fine now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found