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.

Ember 2.14 - classCallCheck is not a function error while running tests in prod mode

See original GitHub issue

This is probably similar to #15506. We have a CI task for running all our tests in both dev and prod mode. We started this, when the app started failing in production, after an ember upgrade (everything was green in normal dev/tests mode).

So the same CI task is complaining of (0 , n.classCallCheck) is not a function).

Locally it can be reproduced by either running the tests on command line like, ember test --environment production

TypeError: (0 , n.classCallCheck) is not a function
    at new a (http://localhost:7357/assets/test-support-53bc5911338063adc4ccac6eb3b4dca0.js:150:61)
    at Function.d (http://localhost:7357/assets/vendor-95589e23a28b7d0c0a9b34af4f24b7ff.js:3155:7)
    at o (http://localhost:7357/assets/test-support-53bc5911338063adc4ccac6eb3b4dca0.js:147:106)
    at http://localhost:7357/assets/test-support-53bc5911338063adc4ccac6eb3b4dca0.js:98:51
    at e.run (http://localhost:7357/assets/vendor-95589e23a28b7d0c0a9b34af4f24b7ff.js:1121:32)
    at Le (http://localhost:7357/assets/vendor-95589e23a28b7d0c0a9b34af4f24b7ff.js:1903:260)
    at a (http://localhost:7357/assets/test-support-53bc5911338063adc4ccac6eb3b4dca0.js:155:56)
    at a.helpers.(anonymous function).meta.wait.n (http://localhost:7357/assets/test-support-53bc5911338063adc4ccac6eb3b4dca0.js:98:20)
    at Object.<anonymous> (http://localhost:7357/assets/tests-d912cb57e87899b732daee3ea65cab72.js:498:101)
    at e (http://localhost:7357/assets/test-support-53bc5911338063adc4ccac6eb3b4dca0.js:277:288)
    at g.run (http://localhost:7357/assets/test-support-
....

or

ember test --server true --environment production and load chrome. One would see following,

ember2 14-tests-in-prod-mode

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
mani-mishracommented, Oct 30, 2017

Is there any updates on this ? Our app is still at 2.13. Let us know if there is anything we can do the help. We can raise a PR, with some guidance if needed.

1reaction
mani-mishracommented, Apr 23, 2018

@rwjblue Can you please confirm the ember/ember-cli version you tested with? I tested with 2.18.0, still seeing the same error.

I think we need to migrate our app to latest versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ember UI not loading - Build Issues
Ember UI is not loading on staging env with below error message in the ... I think it is getting generated when we...
Read more >
yoember.com: Ember.js Octane Tutorial - From beginner to ...
Free Ember.js tutorial for absolute beginners. Build a CRUD application from step by step with the latest Ember.js Octane.
Read more >
ember-qunit | Yarn - Package Manager
ember -qunit simplifies testing of Ember applications with QUnit by providing QUnit-specific wrappers around the helpers contained in ember-test-helpers.
Read more >
str.replace is not a function in ember 2.1.0 - Stack Overflow
I'm really trying to wrap my head around EmberJS but I've been stuck here on this for the last two days! Thanks. Edited....
Read more >
The Ember Run Loop and Asynchronous Testing
This summer, I interned on the Square Seller Dashboard team, which works on the web application that Square merchants use for everything ...
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