-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues Upgrading to 2.X #474
Comments
So after digging into this for awhile, I was able to determine that the issue is with the |
I'm not using similar stack
|
this is my fix: diff --git a/testing/ember-app/ember-cli-build.js b/testing/ember-app/ember-cli-build.js
index 17bd7d6..dafa68a 100644
--- a/testing/ember-app/ember-cli-build.js
+++ b/testing/ember-app/ember-cli-build.js
@@ -1,9 +1,9 @@
'use strict';
-const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
+const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function (defaults) {
- let app = new EmberAddon(defaults, {});
+ let app = new EmberApp(defaults, {});
tl;dr: I'm migrating an addon from the v1 format to the new v2 format, and copy-pasted my ember-cli-build without changing the test app from being an EmberAddon to being an EmberApp |
The stack trace above implies that an app is missing its |
Hmmm, @ef4 I think you're definitely onto something. Looking at the generated script tags in my HTML source and all our assets have the proper root URL (we're serving from S3), but the In our // ember-cli-build.js
switch (env) {
case "production":
fingerprint.enabled = true;
fingerprint.prepend =
"https://s3.amazonaws.com/our-bucket-name/";
break; Maybe we are doing this wrong and should just use the |
Just found this in the Ember-CLI docs:
|
Ah, just found:
🤦 |
Resolved by setting the |
Howdy,
We have a four mature applications and are in the process of trying to upgrade
ember-auto-import
from1.12.0
to2.x
. Of the four apps, two of them appear to build on2.x
, but the others just error out withCannot read property 'length' of undefined
.When I get the debug output I see the following:
If anyone has any insight into where I can start with debugging this, it would be very appreciated.
The text was updated successfully, but these errors were encountered: