Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with coffeescript syntax #79

Open
lapwat opened this issue Nov 3, 2017 · 7 comments
Open

Error with coffeescript syntax #79

lapwat opened this issue Nov 3, 2017 · 7 comments

Comments

@lapwat
Copy link

lapwat commented Nov 3, 2017

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

@esinanturan
Copy link

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

@jimmywarting
Copy link

Drop coffee script and switch to es7...

@lesimoes
Copy link

@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
Copy link

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

@lapwat
Copy link
Author

lapwat commented Jul 26, 2018

@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 coffeescript@1.12.7
$ 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,

@hlolli
Copy link

hlolli commented Sep 22, 2019

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

@SYZYGY-DEV333
Copy link

Having this issue in Manjaro.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants