adopted-ember-addons / ember-data-model-fragments

Ember Data addon to support nested JSON documents
MIT License
370 stars 114 forks source link

"Ember is not defined" on Ember 4 #477

Closed bmaehr closed 1 year ago

bmaehr commented 1 year ago

The ember-copy dependency causes for me the error "Ember is not defined" on startup using ember 4.8.6 in copyable.js. I assume the Ember global was removed with Ember 4. https://deprecations.emberjs.com/v3.x#toc_ember-global

I thought the low Ember 4 versions are working with ember-data-model-fragments?

knownasilya commented 1 year ago

ember-copy doesn't use the Ember global afaik. Can you paste the stack trace?

bmaehr commented 1 year ago

@knownasilya Thank you for your feedback.

I got this solved - it was causd by conflicting versions of dependencies (not shown by dependecy lint). IF you have the same problem:

What did really lead me in a wrong direction was, that in the developer tools of the browser in the source code for copyable.js the global import of Ember was there.