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.

Support for Babel 7

See original GitHub issue

Hello,

The plugin doesnt currently seem to support babel 7, since it should be going stable soon maybe this plugin should implement support for it?

Currently I’m getting errors such as this one in the console when trying to build with babel 7:

Module build failed: TypeError: Cannot read property 'name' of undefined
    at DestructuringTransformer.pushObjectProperty (C:\...\node_modules\babel-plugin-extensible-destructuring\lib\index.js:198:96)
    at DestructuringTransformer.pushObjectPattern (C:\...\node_modules\babel-plugin-extensible-destructuring\lib\index.js:240:18)
    at DestructuringTransformer.push (C:\...\node_modules\babel-plugin-extensible-destructuring\lib\index.js:145:16)
...

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
palnescommented, Feb 21, 2018

I’ve created a PR at #23 that shims the changes in Babel 7. The error above, IIRC, might be related to a change in the Babel plugin @babel/plugin-transform-react-display-name.

1reaction
hleumascommented, Mar 19, 2018

@palnes Are you going to submit a patch please? Otherwise, I would have to revert it to the previous version 😦

Appreciate your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade to Babel 7
Babel has had issues previously with handling node_modules , symlinks, and monorepos. We've made some changes to account for this: Babel will stop...
Read more >
TypeScript and Babel 7 - Microsoft Developer Blogs
Today we're excited to announce something special for Babel users. ... to jointly announce that Babel 7 now ships with TypeScript support!
Read more >
Babel 6 and Babel 7 support - Stack Overflow
In Babel 6, .babelrc configuration applies specifically to files inside subdirectories of the one containing the .babelrc .
Read more >
Babel 7: Configuration, Preset, and Plugin Usage
Often the developer wants to use the latest in JavaScript, but is frustrated by the lack of support in browsers or the Node.js...
Read more >
So What's New in Babel 7? - Bits and Pieces
Babel is a transpiler for JavaScript that is popular among developers for its ability to turn ES6 or ES7 into code that can...
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