question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot destructure property 'A' of '_ember.default' as it is undefined.

See original GitHub issue

Describe 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

  1. Install ember-cli 3.26.1, and ember-inspector 4.4.0 in Google Chrome browser
  2. Create new project and start it: mkdir tmp-dir; cd tmp-dir; ember init; npm start
  3. Open http://127.0.0.1:4200/ and manually add some non-existent url like http://127.0.0.1:4200/some/url
  4. Open chrome inspector dev tools (F12)
  5. Open console
  6. 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:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
rwjbluecommented, May 25, 2021

We just tagged v4.4.1 with a fix (though there may need to be more fixes to follow).

4reactions
jayvarnercommented, May 24, 2021

ijbpeeflkojiljfgfdkhbajcombijegb

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found