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.

It’s known that vue-property-decorator’s @Prop decorators don’t work with Babel 6. Is there any chance this scenario changes with upcoming Babel 7 decorators implementation?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:16
  • Comments:8

github_iconTop GitHub Comments

SecretPocketCatcommented, Jun 13, 2019

Seems like the issue mentioned by the OP is still there. For instance, initialising data with props doesn’t work when transpiled by babel. It does work with ts-loader though.

import { Component, Prop, Vue } from 'vue-property-decorator';

export default class HelloWorld extends Vue {

  msgData = this.msg + '_data';
cybermerlincommented, Sep 21, 2018

support use

    "@babel/plugin-proposal-class-properties": "^7.1.0",
    "@babel/plugin-proposal-decorators": "^7.1.0",
Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade to Babel 7
All of Babel. Support for Node.js 0.10, 0.12, 4 and 5 has been dropped #5025, #5041, #7755, #5186.
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 >
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 >
React: Babel 7 support in boilerplate application - Marc Nuri
Follow-up on my previous post where I prepared a ReactJS application from scratch using Webpack+Babel to support Sass. Now using Babel 7 and ......
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 Post

No results found

github_iconTop Related Hashnode Post

No results found