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

js:babel-register doesn't seem to this code. I get an error with default arguments #140

Closed
funkjunky opened this issue Nov 29, 2016 · 5 comments

Comments

@funkjunky
Copy link

funkjunky commented Nov 29, 2016

constructor(url, options = {}) {

Unexpected token =

Even if I use the require method, it's still es6 and still errors.

I'm running mocha via:
mocha --require babel-polyfill --compilers js:babel-register

@abramz
Copy link

abramz commented Nov 30, 2016

I was able to get 5.0.1 (last version before 6) working w/o a problem

@thoov
Copy link
Owner

thoov commented Nov 30, 2016

Let me take a look into this and see if I can reproduce it.

@thoov
Copy link
Owner

thoov commented Nov 30, 2016

@funkjunky @abramz What version of node are you guys using?

@abramz
Copy link

abramz commented Nov 30, 2016

I am using v4.6.2

@thoov
Copy link
Owner

thoov commented Nov 30, 2016

Found the error. I forgot to publish versions 6.0.2 & 6.0.3 which contained the fix for this issue. I just published version 6.0.3 to npm. Can you install that version and see if it works for you. Thanks!

@thoov thoov closed this as completed Nov 30, 2016
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

3 participants