Forums

OverviewFelgo 2 Support (Qt 5) › Qt Creator indicates syntax error with certain javascript functionality

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #22132

    Felgo User

    Hello,

    I have the following Javascript code:

    unique_sub_names = [...new Set(user_data.map(item => item.sub_name))]

    I can run the code just fine, everything works as it should. However, inside Qt Creator, I get an “Expected token” error for the ‘…’ part and an “Unexpected token” error for the arrow function.

    Even though everything runs on the Live Server just fine, these ‘errors’ cause code coloring issues for all code I write after the error has been detected (plus I can always see this error in my code.

    Is there a way to have Qt Creator ignore certain errors? I read that Qt Creator 4.9 addresses these issues a little but the most recent version of Felgo uses version 4.8.2.

    Thank you for any help.

    Best,
    Eric

Viewing 1 post (of 1 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support