ember-cli-babel icon indicating copy to clipboard operation
ember-cli-babel copied to clipboard

hovering when lack of open curly brace

Open yaxinr opened this issue 3 years ago • 1 comments

ember s hovering when lack of open curly brace with message ⠼ building... [Babel: wcapp > applyPatches]

import Controller from '@ember/controller'
import { action } from '@ember/object'
import { service } from '@ember/service'

export default class WorkcenterTaskController extends Controller {
  @service router
  @service webit
  @action submit(obj) {
    return this.webit
      .taskIssue(Number(this.model.id), obj.issueType.id, obj.msg)
      .then(() => //{ lack
        this.router.transitionTo('workcenter.task.index', this.model)
      }//<- error here
     )
  }
}
    "ember-cli": "~4.2.0",
    "ember-cli-babel": "^7.26.11",

yaxinr avatar Mar 18 '22 13:03 yaxinr

It sounds like the same issue as https://github.com/ember-cli/ember-cli/issues/9826 which is caused by the @babel/parser v7.17.7 release. Forcing the version to 7.17.3 or lower resolves the issue for now.

Windvis avatar Mar 25 '22 08:03 Windvis

This was resolved by https://github.com/babel/broccoli-babel-transpiler/pull/212.

bertdeblock avatar Jan 28 '23 10:01 bertdeblock