hangupsjs icon indicating copy to clipboard operation
hangupsjs copied to clipboard

Error with coffeescript syntax

Open lapwat opened this issue 7 years ago • 7 comments

Hi,

When I npm install hangupsjsI 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

lapwat avatar Nov 03 '17 11:11 lapwat

Hey , It is because of the coffeescript version use older version of coffee compiler v1.12.7

esinanturan avatar Nov 17 '17 15:11 esinanturan

Drop coffee script and switch to es7...

jimmywarting avatar Nov 18 '17 09:11 jimmywarting

@jimmywarting and how can i do that when install? @esinanturan i switch to version 1.12.7 and 1.9 but dons`t work.

lesimoes avatar Jul 26 '18 14:07 lesimoes

@lapwat u solve that? I face same problem here with node v10 and centos.

lesimoes avatar Jul 26 '18 14:07 lesimoes

@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,

lapwat avatar Jul 26 '18 15:07 lapwat

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 :(

hlolli avatar Sep 22 '19 23:09 hlolli

Having this issue in Manjaro.

node_modules/hangupsjs/src/auth.coffee:34:49: error: unexpected ->
class AuthError extends Error then constructor: -> super

SYZYGY-DEV333 avatar May 09 '20 02:05 SYZYGY-DEV333