Uncaught TypeError: Cannot destructure property 'A' of '_ember.default' as it is undefined.
See original GitHub issueDescribe the bug
Exception in console: Uncaught TypeError: Cannot destructure property 'A' of '_ember.default' as it is undefined.
From time to time Ember also said that this is not an Ember application. I suppose because of this is error.
With more loaded application (tailwind, ember-cli-mirage, some components, some routes, some models and so on) it starts failing more often. When I did mirage mockups, and gives this error in 50-60% of refreshes.
To Reproduce
- Install ember-cli 3.26.1, and ember-inspector 4.4.0 in Google Chrome browser
- Create new project and start it:
mkdir tmp-dir; cd tmp-dir; ember init; npm start
- Open http://127.0.0.1:4200/ and manually add some non-existent url like http://127.0.0.1:4200/some/url
- Open chrome inspector dev tools (F12)
- Open console
- Now spam Ctrl-R to refresh page. After time to time there will be exception:
VM4178:61 Uncaught TypeError: Cannot destructure property 'A' of '_ember.default' as it is undefined.
at <anonymous>:61:5
at requireModule (<anonymous>:42:28)
at requireModule (<anonymous>:38:24)
at <anonymous>:9574:62
at triggerOnce (<anonymous>:9642:7)
at runLoadHooks (lazy_load.js:75)
at index.js:588
at internalRequire (loader.js:54)
at require (loader.js:87)
at rsvp.js:2493
Research showed that it points to this line: https://github.com/emberjs/ember-inspector/blob/master/ember_debug/adapters/basic.js#L3 Ember object here could be undefined.
Expected behavior No exception
Environment ember 3.26.1 node-inspector 4.4.0 google chrome 90.0.4430.212
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot destructure property `name` of ...
Default function parameters allow named parameters to be initialized with default values if no value or undefined is passed.
Read more >Next.js error: Cannot destructure property? : r/learnjavascript
I am following a tutorial and I cannot figure out why Next keeps throwing this error: TypeError: Cannot destructure property 'loginUser' of '(0 ......
Read more >Cannot read properties of null (reading 'syscall') - Help me!
Trying to walk over a table results in this error and only a single record loads. Failure Logs. In this optional section, please:...
Read more >Webpackerror: Typeerror: Cannot Destructure Property
Describe the bug Exception in console: Uncaught TypeError: Cannot destructure property 'A' of 'ember.default' as it is undefined.
Read more >Specifying a Route's Model - Ember Guides
In Ember, functions that automatically run during rendering or setup are commonly ... import Route from '@ember/routing/route'; export default class ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We just tagged v4.4.1 with a fix (though there may need to be more fixes to follow).
ijbpeeflkojiljfgfdkhbajcombijegb