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.

Another _Ember is undefined error

See original GitHub issue

Symptoms

Same symptoms as #342, but the errors are coming up while loading tests in Travis. Every require fails with this error.

How to replicate

You should be able to replicate by running tests with CI=true.

It’s related to this default line in targets.js. Removing ie 11 as a target removes the issue.

if (isCI || isProduction) {
  browsers.push('ie 11');
}

Tested on latest ember-cli-babel@7.20.4.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
rwjbluecommented, Jun 2, 2020

Ya, sorry for this taking so long. It took a little while to figure out which specific babel plugins were mutating the nodes, and I only discovered that using the shared AST nodes was causing an issue due to stepping through the tranpsilation process.

#348 should land and be released as 7.20.5 soon.

5reactions
rwjbluecommented, Jun 1, 2020

OK, that sounds a lot like the scenario that @sandydoo called out and provided a reproduction for. I’ll be looking into it this afternoon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ember.js - Getting a model is undefined error after upgrading ...
Some other issue? Edit: Actually I think I have narrowed down what the error is. It doesn't seem to like the title being...
Read more >
Cannot read property 'get' of undefined - Ember.JS
... but I have an error; routes/purchases.js: import Route from ... Lastly you're trying to get another property “pname” from something that ...
Read more >
models is undefined · Issue #12845 · emberjs/ember.js - GitHub
I have another strange bug in ember. Sometimes i get an error when switching routes. TypeError: models is undefined. This error doesn't happen ......
Read more >
The 8 Most Common Mistakes That Ember.js Developers Make
Ember.js is an awesome framework for building rich and powerful front-ends, ... The problem was that if the user then switched to another...
Read more >
Uncaught type error: Cannot read property 'ajax' of undefined ...
Coding example for the question Uncaught type error: Cannot read property 'ajax' of undefined-ember.js.
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