The build of an app I'm migrating to Embroider seems to be correct. However, when I load the app in the browser, it shows me this error:
(0 , ember_application__WEBPACK_IMPORTED_MODULE_2_.getOwner) is not a function
I looked at what that module is and found this:
var _ember_application__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ember/application */ ...);
The module seems to be completely empty:
Object.keys(ember_application__WEBPACK_IMPORTED_MODULE_2_).length => 0
Whereas other modules defined in the same file seems to have the exports, as expected:
Object.keys(ember_debug__WEBPACK_IMPORTED_MODULE_0_).length => 19
The error is thrown from ember-data's adapterFor function but I assume it'd be thrown anywhere getOwner is used.
I tried removing node_modules, clearing Embroider's cache and re-installing the whole project but it didn't change anything. I also tried finding an issue about this in the Embroider repo but I came up empty handed.
Do you have an idea what can go wrong? Thank you!