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

let issue #58

Closed
mnowik opened this issue Sep 16, 2015 · 2 comments
Closed

let issue #58

mnowik opened this issue Sep 16, 2015 · 2 comments

Comments

@mnowik
Copy link

mnowik commented Sep 16, 2015

I have an issue using let.

Here is my code:

if (a === b ) {
  let defaultReturnAddress = {};
  let returnAddress = _this.get('currentUser.address');
  ...
}
if (defaultReturnAddress) {...}

Here is the translation using ember-cli-babel@5.1.5

if (a === b ) {
  var _defaultReturnAddress = {};
  var returnAddress = _this.get('currentUser.address');
  ...
}
if (defaultReturnAddress) {...}

It seems to be linked to this error on babel babel/babel#166.
This error was closed a while ago. however, it seems to be a Babel issue.

@stefanpenner
Copy link
Member

If it's a babel issue. It's likely best to open it there. This library merely wraps whichever babel your npm installs in the 5.x.x range

@mnowik
Copy link
Author

mnowik commented Sep 16, 2015

Tks I will post it there.

siva-sundar pushed a commit to siva-sundar/ember-cli-babel that referenced this issue Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants