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

"Missing initializer in const declaration" #2897

Closed
popeindustries opened this issue Jun 5, 2019 · 3 comments · Fixed by #2899
Closed

"Missing initializer in const declaration" #2897

popeindustries opened this issue Jun 5, 2019 · 3 comments · Fixed by #2899

Comments

@popeindustries
Copy link

  • Rollup Version: 1.14.0
  • Operating System (or Browser): MacOS 10.14.5
  • Node Version: 12.4.0

How Do We Reproduce?

// In
export class Foo {
  async foo() {
    const something = await window.something();
  }
}

// Out
class Foo {
  async foo() {
    const something;
  }
}
export { Foo };

Repl

Expected Behavior

const something should have an initializer (right hand side) value.

Actual Behavior

Node/browser syntax error when parsing because const is declared without value.

@lukastaegert
Copy link
Member

Seems to be the same issue as #2896, looking into it.

@lukastaegert
Copy link
Member

Fix at #2899

@lukastaegert
Copy link
Member

Sorry for the inconvenience, should be fixed in 1.14.1 now.

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

Successfully merging a pull request may close this issue.

2 participants