• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

iink - invalid arrow function parameters

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to evaluate iink (MyScript) and have an issue with part of the code that I downloaded in that it is returning an error "invalid arrow function parameters". There is also a "Semi-colon expected" error; however, I suspect that will be resolved once the first error is resolved.

The code is:

 
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's giving you this "error"? A browser? An IDE? I'm not seeing an issue at first glance (except for the clarity of the code -- I'd have made it less dense).
 
Glyndwr Bartlett
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear,

I am using the Eclipse 2021-06 (4.20.0) IDE. And it there that I am getting the error.

Kind regards,

Glyn
 
Bear Bibeault
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does it run correctly in the browser?
 
Glyndwr Bartlett
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bear,

I did not try it; as there was an error. So, I just tried it and it did work! This error was with the languages and they work. Any expiation as to why you can have an error and yet it still compiles and works? Is there a better way of writing this code so the errors do not appear? It just sticks in my craw to have code with errors!

Kind regards,

Glyn
 
Bear Bibeault
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This means that there is no actual error and the IDE is mistakenly thinking that there is one. Perhaps there are IDE settings that need to be adjusted.
 
reply
    Bookmark Topic Watch Topic
  • New Topic