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.

How to support es6 "class" syntax?

See original GitHub issue

I use ES6 class syntax in my koa-2 app. when i package my app, there are the error msg: This experimental syntax requires enabling the parser plugin: 'classProperties' I try to add @babel/plugin-proposal-class-properties in my app and .babelrc ,but it doesn’t work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
RudyMaringercommented, Apr 29, 2019

@d1soft Hi, Could you please give more details ?

0reactions
Dr-Harriscommented, Apr 19, 2019

@Dr-Harris, I resolved it with installing babel-node and transpiling sources. After that i without problems builded executable files from builded by babel (babel -b) sources. If you need more explanations, you can mention me here.

thank you…I’ll try it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ES6 classes | Can I use... Support tables for HTML5, CSS3, etc
ES6 classes are syntactical sugar to provide a much simpler and clearer syntax to create objects and deal with inheritance. Usage % of....
Read more >
Classes - JavaScript - MDN Web Docs
Classes are a template for creating objects. ... Classes in JS are built on prototypes but also have some syntax and semantics that...
Read more >
ES6 - Classes - Tutorialspoint
Syntax : Class Expressions ... The class keyword is followed by the class name. The rules for identifiers (already discussed) must be considered...
Read more >
Classes (ES6) Sample
ES6 Classes formalize the common JavaScript pattern of simulating class-like inheritance hierarchies using functions and prototypes. They are effectively simple ...
Read more >
JavaScript ES6 Class Syntax - Cory Rylan
ES6 classes brings a new syntax for getters and setters on object properties Get and set allows us to run code on the...
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