Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

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

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

    Eric

    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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded