hangupsjs
hangupsjs copied to clipboard
Error with coffeescript syntax
Hi,
When I npm install hangupsjs
I get
node_modules/hangupsjs/src/auth.coffee:32:49: error: unexpected -> class AuthError extends Error then constructor: -> super ^^
If I install coffescript via brew or npm, I get the same error. I think this has something to do with ES6 syntax of coffescript. Does it support it ? Which version should I install ?
Thank you all
Hey , It is because of the coffeescript version use older version of coffee compiler v1.12.7
Drop coffee script and switch to es7...
@jimmywarting and how can i do that when install? @esinanturan i switch to version 1.12.7 and 1.9 but dons`t work.
@lapwat u solve that? I face same problem here with node v10 and centos.
@lesimoes
I am affraid I didn't...
Try installing an older version of coffeescript like @esinanturan suggested. Version 1.12.7 worked on my Arch.
$ sudo npm uninstall -g coffeescript
$ sudo npm install -g [email protected]
$ coffee -v
#CoffeeScript version 1.12.7
$ sudo npm install hangupsjs
The above error is dropped but another permission error popped up. Let me know if you figured it out or create an issue.
Best,
node_modules/hangupsjs/src/auth.coffee:34:49: error: unexpected ->
class AuthError extends Error then constructor: -> super
^^
this is not only old and deprecated, this is non-transpiled coffee-script code, I didn't get 1.12.7 to work :(
Having this issue in Manjaro.
node_modules/hangupsjs/src/auth.coffee:34:49: error: unexpected ->
class AuthError extends Error then constructor: -> super