Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

no ES6 support? #3596

Open
lifubang opened this issue Aug 8, 2017 · 7 comments
Open

no ES6 support? #3596

lifubang opened this issue Aug 8, 2017 · 7 comments

Comments

@lifubang
Copy link

lifubang commented Aug 8, 2017

Version: Windows (MinGW) | 0.12.4 64bit

Error Information:
Loading pages (1/6)
Warning: http://report.acmcoder.com/static/js/circleChart.js:33 SyntaxError: Parse error
Warning: undefined:0 TypeError: 'undefined' is not a function
Warning: undefined:0 TypeError: 'undefined' is not a function
libpng warning: iCCP: known incorrect sRGB profile ] 71%
libpng warning: iCCP: known incorrect sRGB profile> ] 83%
QWaitCondition: Destroyed while threads are still waiting====] 100%
QWaitCondition: Destroyed while threads are still waiting
^C

The content of line 33 in circleChart.js is:

    Math.linearTween = (t, b, c, d) => c * t / d + b;

How to support ES6?

@akerouanton
Copy link
Contributor

AFAIK you can't use ES6 features, you need to transpile your code in ES5 first.

@BorderCloud
Copy link

Another error with ES6 : "SyntaxError: Use of reserved word 'class'"

You know when ES6 features can be support ?

Thanks

@akerouanton
Copy link
Contributor

@BorderCloud AFAIK, this project is currently in a standstill :( And I don't know what's the current status of QtWeb 5.x (the underlying dependency providing web capabilities, including support to javascript).

@BorderCloud
Copy link

@NiR- not news about ES6 ?
Thanks

@BorderCloud
Copy link

I have the time to test.
Can you generate a version alpha of the future release ?
I tried to compile but it's too hard...

Thanks

@DevHachi
Copy link

DevHachi commented Nov 9, 2020

Is there any new information on that. Cause I can't remove es6 because its inside another Framework that I don't have access to.

@bruno-ds
Copy link

bruno-ds commented Oct 7, 2022

Please, the documentation should at least provide this information as ES6 is the de-facto standard since microsft stopped shipping IE.

We spent several days debugging to find that our problem was webpack compiling dependencies using arrow function in our prod env.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

7 participants