Dependency tree issue

Hi I hope everyone is doing great. I’ve been facing this issue that is driving me insane on my ember app the app is blank and I get this error on the console

has-many-d45aa09e.js:759 Uncaught TypeError: Class extends value undefined is not a constructor or null at Module.callback (has-many-d45aa09e.js:759:1) at Module.exports (loader.js:106:1) at Module._reify (loader.js:143:1) at Module.reify (loader.js:130:1) at Module.exports (loader.js:104:1) at Module._reify (loader.js:143:1) at Module.reify (loader.js:130:1) at Module.exports (loader.js:104:1) at Module._reify (loader.js:143:1) at Module.reify (loader.js:130:1)

And when I click on has-many it show this on the screenshot. Can anyone please help me

Hi @rafik-ben1, I also had the same issue with this kind of errors and with different browser give different errors but still related to ember-data case. It just happen these days (I created new project on sunday which still just fine).

Since its a new project, I try to remove the ember-data and the app goes up and running. But I need the ember-data and try use the ember-data 4.4 which works.

Hope this temporary fix will temporary help for a while…

Its been 2 days I’m trying whats going on and still don’t know what it is.. Maybe others can help to fix this ?

And I still use the ember 4.12, because of the addon I use still not move on to the new ember version:

ember -v

ember-cli: 4.12.3
node: 18.20.6
os: linux x64

Ember Data

1 Like

The issue is a bad version of @embroider/macros. Likely if you pin it back a few releases things will work

1 Like

Which version of @embroider/macros that works, if I may know?

  "overrides": {
    "@embroider/addon-shim@^1.5.0 <1.10": "~1.9",
    "@embroider/macros@^1.8.3 <1.17": "~1.16"
  },

Thank you I really appreciate your reply :heart::heart: