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.

Bumping Babel to better support TypeScript

See original GitHub issue

Do you want to request a feature or report a bug? feature

What is the current behavior?

Metro, and by extension React Native, ships with Babel 7.0.0-beta.47.

What is the expected behavior?

I would love for Babel to be bumped to at least version 7.0.0-beta.48 to get some much-needed fixes for TypeScript. My end goal is to be able to use Babel to transpile my TypeScript files in my React Native project.

Currently, this doesn’t seem possible since the Flow plugin is required to be loaded by React Native, and the TypeScript plugin cannot be active at the same time as Flow. In beta.48 the TypeScript preset was updated to only run on .ts and .tsx files and I think that that would solve the problem of both being loaded.

I tried starting the work on this myself but ran into unexpected trouble and I’m at a loss for how to troubleshoot it. For some reason the basic_bundle-test is running into a “RangeError: Maximum call stack size exceeded” error, after bumping all babel dependencies from beta.47 to beta.48.

Would love some help on continuing this ☺️

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
pvdzcommented, Jul 12, 2018

Actually @rubennorte is doing this right now 😃

3reactions
pvdzcommented, Jul 23, 2018

FYI Metro 42.2 depends on Babel 7 beta 54.

Closing this ticket as that seems to resolve it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is babel still relevant for TypeScript projects
If you look at the surface, indeed Babel and TypeScript are both capable of transpilation, but babel is capable of covering a much...
Read more >
Documentation - Using Babel with TypeScript
By using babel's support for TypeScript, you get the ability to work with existing build pipelines and are more likely to have a...
Read more >
How TypeScript over babel greatly simplifies creating libraries
All I want is write code using the latest features and transpile it down to ES5. For long I was using babel for...
Read more >
Introducing TypeScript in existing JavaScript projects with Babel
It's super fast. Since Babel does not support type-checking, all it does to your TypesScript code is striping it of TypeScript syntax, leaving ......
Read more >
@babel/preset-typescript | Yarn - Package Manager
Intro. Babel is a tool that helps you write code in the latest version of JavaScript. When your supported environments don't support certain...
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