initially reported here: https://github.com/ember-cli/ember-octane-blueprint/issues/69
import { action } from '@ember/object';
@ember/object does not have a action export
experimental decorators feature flag is enabled :)
For anyone else playing around with Octane, the following hack works until the import is officially available:
const { action } = Ember.__loader.require('@ember/object');
@kpfefferle actually Ember._action is what you should use as a work around for now (no need to reach into the internal loader/registry that way)
Annnnd, now the "real" import works.
Steps:
yarn upgrade ember-cli-babel@^7.6.0
Then you can use:
import { action } from '@ember/object';
This is still an issue. Using ember-cli-babe 7.7.3.
Most helpful comment
Annnnd, now the "real" import works.
Steps:
Then you can use: