Skip to content
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

When I add ember-macro-helpers to my addon, I get lots of strange errors in my app using it #214

Closed
buzzware opened this issue Aug 7, 2018 · 4 comments

Comments

@buzzware
Copy link

buzzware commented Aug 7, 2018

I have an addon that uses createClassComputed in the class KojacEmberCache, and all the addon tests pass. But when I try to use the addon and KojacEmberCache in my app, I get all these errors.

See the full log below, but I think the most interesting bit is "Could not find module ember-macro-helpers imported from ember-kojac/utils/ember/KojacEmberCache"

The tests in the addon pass fine, but somehow the app using the addon has these problems.

Any ideas ?

arys-MBP:browser gary$ ember test
⠙ Building[API] Warning: The .read and .rebuild APIs will stop working in the next Broccoli version
[API] Warning: Use broccoli-plugin instead: https://github.com/broccolijs/broccoli-plugin
[API] Warning: Plugin uses .read/.rebuild API: Filter
⠋ BuildingDEPRECATION WARNING on line 64, column 8 of /Users/gary/repos/2018/ASDDriver/browser/tmp/sass_compiler-input_base_path-VABwSeal.tmp/0/app/styles/app.scss:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.

DEPRECATION WARNING on line 67, column 8 of /Users/gary/repos/2018/ASDDriver/browser/tmp/sass_compiler-input_base_path-VABwSeal.tmp/0/app/styles/app.scss:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.

DEPRECATION WARNING on line 632, column 56 of /Users/gary/repos/2018/ASDDriver/browser/tmp/sass_compiler-input_base_path-VABwSeal.tmp/0/app/styles/sing-sass/_bootstrap-override.scss:
The value "#ffffff26" is currently parsed as a string, but it will be parsed as a color in
future versions of Sass. Use "unquote('#ffffff26')" to continue parsing it as a string.

DEPRECATION WARNING on line 632, column 63 of /Users/gary/repos/2018/ASDDriver/browser/tmp/sass_compiler-input_base_path-VABwSeal.tmp/0/app/styles/sing-sass/_bootstrap-override.scss:
The value "#fff0" is currently parsed as a string, but it will be parsed as a color in
future versions of Sass. Use "unquote('#fff0')" to continue parsing it as a string.

⠙ BuildingDEPRECATION WARNING on line 76, column 8 of /Users/gary/repos/2018/ASDDriver/browser/tmp/sass_compiler-input_base_path-VABwSeal.tmp/0/app/styles/app.scss:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.

DEPRECATION WARNING on line 77, column 8 of /Users/gary/repos/2018/ASDDriver/browser/tmp/sass_compiler-input_base_path-VABwSeal.tmp/0/app/styles/app.scss:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.

DEPRECATION WARNING on line 78, column 8 of /Users/gary/repos/2018/ASDDriver/browser/tmp/sass_compiler-input_base_path-VABwSeal.tmp/0/app/styles/app.scss:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.

cleaning up...
Built project successfully. Stored in "/Users/gary/repos/2018/ASDDriver/browser/tmp/class-tests_dist-4UCVFUad.tmp".
ok 1 Chrome 67.0 - [0 ms] - ESLint | app app.js
ok 2 Chrome 67.0 - [0 ms] - ESLint | app components/chat-widget.js
ok 3 Chrome 67.0 - [0 ms] - ESLint | app components/content-block.js
ok 4 Chrome 67.0 - [0 ms] - ESLint | app components/ember-power-select.js
ok 5 Chrome 67.0 - [0 ms] - ESLint | app components/home-layout.js
ok 6 Chrome 67.0 - [1 ms] - ESLint | app components/instructor-layout.js
ok 7 Chrome 67.0 - [0 ms] - ESLint | app components/login-form.js
ok 8 Chrome 67.0 - [0 ms] - ESLint | app components/md-text-renderer.js
ok 9 Chrome 67.0 - [0 ms] - ESLint | app components/md-text.js
ok 10 Chrome 67.0 - [0 ms] - ESLint | app components/simple-image.js
ok 11 Chrome 67.0 - [0 ms] - ESLint | app components/simple-layout.js
ok 12 Chrome 67.0 - [0 ms] - ESLint | app components/sing-navbar.js
ok 13 Chrome 67.0 - [0 ms] - ESLint | app components/sing-sidebar.js
ok 14 Chrome 67.0 - [0 ms] - ESLint | app components/student-select.js
ok 15 Chrome 67.0 - [0 ms] - ESLint | app components/task-to-student-button.js
ok 16 Chrome 67.0 - [0 ms] - ESLint | app components/title-1-column-layout.js
ok 17 Chrome 67.0 - [0 ms] - ESLint | app components/video-player.js
ok 18 Chrome 67.0 - [0 ms] - ESLint | app components/visual-with-text.js
ok 19 Chrome 67.0 - [0 ms] - ESLint | app controllers/members.js
ok 20 Chrome 67.0 - [0 ms] - ESLint | app controllers/members/instructor.js
ok 21 Chrome 67.0 - [0 ms] - ESLint | app controllers/members/student.js
ok 22 Chrome 67.0 - [0 ms] - ESLint | app controllers/page.js
ok 23 Chrome 67.0 - [0 ms] - ESLint | app controllers/play.js
ok 24 Chrome 67.0 - [0 ms] - ESLint | app controllers/session/login.js
ok 25 Chrome 67.0 - [0 ms] - ESLint | app initializers/environment.js
ok 26 Chrome 67.0 - [0 ms] - ESLint | app lib/FirebaseKojacStore.js
ok 27 Chrome 67.0 - [0 ms] - ESLint | app lib/index-route-with-default.js
ok 28 Chrome 67.0 - [0 ms] - ESLint | app mixins/waitable.js
ok 29 Chrome 67.0 - [0 ms] - ESLint | app models/AppCache.js
ok 30 Chrome 67.0 - [0 ms] - ESLint | app models/Chat.js
ok 31 Chrome 67.0 - [0 ms] - ESLint | app models/Person.js
ok 32 Chrome 67.0 - [0 ms] - ESLint | app models/Role.js
ok 33 Chrome 67.0 - [0 ms] - ESLint | app models/Task.js
ok 34 Chrome 67.0 - [0 ms] - ESLint | app resolver.js
ok 35 Chrome 67.0 - [0 ms] - ESLint | app router.js
ok 36 Chrome 67.0 - [0 ms] - ESLint | app routes/application.js
ok 37 Chrome 67.0 - [0 ms] - ESLint | app routes/index.js
ok 38 Chrome 67.0 - [0 ms] - ESLint | app routes/members.js
ok 39 Chrome 67.0 - [0 ms] - ESLint | app routes/members/index.js
ok 40 Chrome 67.0 - [0 ms] - ESLint | app routes/members/instructor.js
ok 41 Chrome 67.0 - [0 ms] - ESLint | app routes/members/manager.js
ok 42 Chrome 67.0 - [0 ms] - ESLint | app routes/members/page.js
ok 43 Chrome 67.0 - [0 ms] - ESLint | app routes/members/student.js
ok 44 Chrome 67.0 - [0 ms] - ESLint | app routes/members/timeline.js
ok 45 Chrome 67.0 - [0 ms] - ESLint | app routes/mock.js
ok 46 Chrome 67.0 - [0 ms] - ESLint | app routes/mock/lesson.js
ok 47 Chrome 67.0 - [0 ms] - ESLint | app routes/page.js
ok 48 Chrome 67.0 - [0 ms] - ESLint | app routes/play.js
ok 49 Chrome 67.0 - [0 ms] - ESLint | app routes/session/begin.js
ok 50 Chrome 67.0 - [0 ms] - ESLint | app routes/session/login.js
ok 51 Chrome 67.0 - [0 ms] - ESLint | app routes/session/restore.js
ok 52 Chrome 67.0 - [0 ms] - ESLint | app services/firebase.js
ok 53 Chrome 67.0 - [0 ms] - ESLint | app services/kojac.js
ok 54 Chrome 67.0 - [0 ms] - ESLint | app torii-adapters/application.js
ok 55 Chrome 67.0 - [0 ms] - ESLint | app torii-adapters/firebase.js
ok 56 Chrome 67.0 - [0 ms] - ESLint | app torii-adapters/firebaseui.js
ok 57 Chrome 67.0 - [0 ms] - ESLint | app torii-providers/firebase.js
ok 58 Chrome 67.0 - [89 ms] - Integration | Component | chat-widget renders
ok 59 Chrome 67.0 - [10 ms] - Integration | Component | sing-sidebar renders
ok 60 Chrome 67.0 - [5 ms] - Integration | Component | task-to-student-button renders
not ok 61 Chrome 67.0 - [39 ms] - Integration | Kojac "before each" hook for "login and read own Person"
---
message: >
Cannot read property 'exports' of undefined
stack: >
TypeError: Cannot read property 'exports' of undefined
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at requireModule (http://localhost:7357/assets/vendor.js:32:18)
at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)
at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)
at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)
Log: |
...
not ok 62 Chrome 67.0 - [0 ms] - Integration | Kojac "after each" hook for "login and read own Person"
---
message: >
Cannot read property 'exports' of undefined
stack: >
TypeError: Cannot read property 'exports' of undefined
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at requireModule (http://localhost:7357/assets/vendor.js:32:18)
at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)
at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)
at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)
Log: |
{ type: 'error',
text: ''TypeError: Cannot read property \'exports\' of undefined\n at Module._reify (http://localhost:7357/assets/vendor.js:148:59)\\n at Module.reify (http://localhost:7357/assets/vendor.js:135:27)\\n at Module.exports (http://localhost:7357/assets/vendor.js:109:10)\\n at Module._reify (http://localhost:7357/assets/vendor.js:148:59)\\n at Module.reify (http://localhost:7357/assets/vendor.js:135:27)\\n at Module.exports (http://localhost:7357/assets/vendor.js:109:10)\\n at requireModule (http://localhost:7357/assets/vendor.js:32:18)\\n at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)\\n at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)\\n at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)\'\n' }
...
not ok 63 Chrome 67.0 - [0 ms] - Unit | Controller | members "before each" hook for "exists"
---
message: >
Cannot read property 'subject' of undefined
stack: >
TypeError: Cannot read property 'subject' of undefined
at exports.default.teardownSubject (http://localhost:7357/assets/test-support.js:26139:32)
at Ember.RSVP.Promise.resolve (http://localhost:7357/assets/test-support.js:25277:26)
at initializePromise (http://localhost:7357/assets/vendor.js:59524:7)
at new Promise (http://localhost:7357/assets/vendor.js:60004:35)
at nextStep (http://localhost:7357/assets/test-support.js:25276:18)
at exports.default.invokeSteps (http://localhost:7357/assets/test-support.js:25283:14)
at invokeSteps.then (http://localhost:7357/assets/test-support.js:25240:21)
at tryCatcher (http://localhost:7357/assets/vendor.js:59327:21)
at invokeCallback (http://localhost:7357/assets/vendor.js:59499:33)
at http://localhost:7357/assets/vendor.js:59563:16
Log: |
{ type: 'error',
text: ''TypeError: Cannot read property \'subject\' of undefined\n at exports.default.teardownSubject (http://localhost:7357/assets/test-support.js:26139:32)\\n at Ember.RSVP.Promise.resolve (http://localhost:7357/assets/test-support.js:25277:26)\\n at initializePromise (http://localhost:7357/assets/vendor.js:59524:7)\\n at new Promise (http://localhost:7357/assets/vendor.js:60004:35)\\n at nextStep (http://localhost:7357/assets/test-support.js:25276:18)\\n at exports.default.invokeSteps (http://localhost:7357/assets/test-support.js:25283:14)\\n at invokeSteps.then (http://localhost:7357/assets/test-support.js:25240:21)\\n at tryCatcher (http://localhost:7357/assets/vendor.js:59327:21)\\n at invokeCallback (http://localhost:7357/assets/vendor.js:59499:33)\\n at http://localhost:7357/assets/vendor.js:59563:16\'\n' }
...
not ok 64 Chrome 67.0 - [0 ms] - Unit | Controller | members "after each" hook for "exists"
---
message: >
Cannot read property 'exports' of undefined
stack: >
TypeError: Cannot read property 'exports' of undefined
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at requireModule (http://localhost:7357/assets/vendor.js:32:18)
at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)
at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)
at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)
Log: |
{ type: 'error',
text: ''TypeError: Cannot read property \'exports\' of undefined\n at Module._reify (http://localhost:7357/assets/vendor.js:148:59)\\n at Module.reify (http://localhost:7357/assets/vendor.js:135:27)\\n at Module.exports (http://localhost:7357/assets/vendor.js:109:10)\\n at Module._reify (http://localhost:7357/assets/vendor.js:148:59)\\n at Module.reify (http://localhost:7357/assets/vendor.js:135:27)\\n at Module.exports (http://localhost:7357/assets/vendor.js:109:10)\\n at requireModule (http://localhost:7357/assets/vendor.js:32:18)\\n at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)\\n at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)\\n at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)\'\n' }
...
not ok 65 Chrome 67.0 - [0 ms] - Unit | Controller | members/instructor "before each" hook for "exists"
---
message: >
Cannot read property 'subject' of undefined
stack: >
TypeError: Cannot read property 'subject' of undefined
at exports.default.teardownSubject (http://localhost:7357/assets/test-support.js:26139:32)
at Ember.RSVP.Promise.resolve (http://localhost:7357/assets/test-support.js:25277:26)
at initializePromise (http://localhost:7357/assets/vendor.js:59524:7)
at new Promise (http://localhost:7357/assets/vendor.js:60004:35)
at nextStep (http://localhost:7357/assets/test-support.js:25276:18)
at exports.default.invokeSteps (http://localhost:7357/assets/test-support.js:25283:14)
at invokeSteps.then (http://localhost:7357/assets/test-support.js:25240:21)
at tryCatcher (http://localhost:7357/assets/vendor.js:59327:21)
at invokeCallback (http://localhost:7357/assets/vendor.js:59499:33)
at http://localhost:7357/assets/vendor.js:59563:16
Log: |
{ type: 'error',
text: ''TypeError: Cannot read property \'subject\' of undefined\n at exports.default.teardownSubject (http://localhost:7357/assets/test-support.js:26139:32)\\n at Ember.RSVP.Promise.resolve (http://localhost:7357/assets/test-support.js:25277:26)\\n at initializePromise (http://localhost:7357/assets/vendor.js:59524:7)\\n at new Promise (http://localhost:7357/assets/vendor.js:60004:35)\\n at nextStep (http://localhost:7357/assets/test-support.js:25276:18)\\n at exports.default.invokeSteps (http://localhost:7357/assets/test-support.js:25283:14)\\n at invokeSteps.then (http://localhost:7357/assets/test-support.js:25240:21)\\n at tryCatcher (http://localhost:7357/assets/vendor.js:59327:21)\\n at invokeCallback (http://localhost:7357/assets/vendor.js:59499:33)\\n at http://localhost:7357/assets/vendor.js:59563:16\'\n' }
...
not ok 66 Chrome 67.0 - [0 ms] - Unit | Controller | members/student exists
---
message: >
this.subject is not a function
stack: >
TypeError: this.subject is not a function
at Context. (http://localhost:7357/assets/tests.js:884:29)
at invoke (http://localhost:7357/assets/test-support.js:21921:21)
at Context.method (http://localhost:7357/assets/test-support.js:21986:13)
at callFnAsync (http://localhost:7357/assets/test-support.js:13190:8)
at Test.Runnable.run (http://localhost:7357/assets/test-support.js:13142:7)
at Runner.runTest (http://localhost:7357/assets/test-support.js:13630:10)
at http://localhost:7357/assets/test-support.js:13736:12
at next (http://localhost:7357/assets/test-support.js:13550:14)
at http://localhost:7357/assets/test-support.js:13560:7
at next (http://localhost:7357/assets/test-support.js:13492:14)
Log: |
...
not ok 67 Chrome 67.0 - [0 ms] - TestLoader Failures asddriver/tests/unit/models/app-cache-test: could not be loaded
---
message: >
Could not find module ember-macro-helpers imported from ember-kojac/utils/ember/KojacEmberCache
stack: >
Error: Could not find module ember-macro-helpers imported from ember-kojac/utils/ember/KojacEmberCache
at missingModule (http://localhost:7357/assets/vendor.js:252:11)
at findModule (http://localhost:7357/assets/vendor.js:263:7)
at Module.findDeps (http://localhost:7357/assets/vendor.js:173:24)
at findModule (http://localhost:7357/assets/vendor.js:267:11)
at Module.findDeps (http://localhost:7357/assets/vendor.js:173:24)
at findModule (http://localhost:7357/assets/vendor.js:267:11)
at Module.findDeps (http://localhost:7357/assets/vendor.js:173:24)
at findModule (http://localhost:7357/assets/vendor.js:267:11)
at requireModule (http://localhost:7357/assets/vendor.js:29:15)
at TestLoader.require (http://localhost:7357/assets/test-support.js:24574:9)
Log: |
...
not ok 68 Chrome 67.0 - [0 ms] - Unit | Route | members/index exists
---
message: >
this.subject is not a function
stack: >
TypeError: this.subject is not a function
at Context. (http://localhost:7357/assets/tests.js:985:24)
at invoke (http://localhost:7357/assets/test-support.js:21921:21)
at Context.method (http://localhost:7357/assets/test-support.js:21986:13)
at callFnAsync (http://localhost:7357/assets/test-support.js:13190:8)
at Test.Runnable.run (http://localhost:7357/assets/test-support.js:13142:7)
at Runner.runTest (http://localhost:7357/assets/test-support.js:13630:10)
at http://localhost:7357/assets/test-support.js:13736:12
at next (http://localhost:7357/assets/test-support.js:13550:14)
at http://localhost:7357/assets/test-support.js:13560:7
at next (http://localhost:7357/assets/test-support.js:13492:14)
Log: |
...
not ok 69 Chrome 67.0 - [0 ms] - Unit | Route | members/instructor exists
---
message: >
this.subject is not a function
stack: >
TypeError: this.subject is not a function
at Context. (http://localhost:7357/assets/tests.js:1000:24)
at invoke (http://localhost:7357/assets/test-support.js:21921:21)
at Context.method (http://localhost:7357/assets/test-support.js:21986:13)
at callFnAsync (http://localhost:7357/assets/test-support.js:13190:8)
at Test.Runnable.run (http://localhost:7357/assets/test-support.js:13142:7)
at Runner.runTest (http://localhost:7357/assets/test-support.js:13630:10)
at http://localhost:7357/assets/test-support.js:13736:12
at next (http://localhost:7357/assets/test-support.js:13550:14)
at http://localhost:7357/assets/test-support.js:13560:7
at next (http://localhost:7357/assets/test-support.js:13492:14)
Log: |
...
not ok 70 Chrome 67.0 - [0 ms] - Unit | Route | members/manager exists
---
message: >
this.subject is not a function
stack: >
TypeError: this.subject is not a function
at Context. (http://localhost:7357/assets/tests.js:1015:24)
at invoke (http://localhost:7357/assets/test-support.js:21921:21)
at Context.method (http://localhost:7357/assets/test-support.js:21986:13)
at callFnAsync (http://localhost:7357/assets/test-support.js:13190:8)
at Test.Runnable.run (http://localhost:7357/assets/test-support.js:13142:7)
at Runner.runTest (http://localhost:7357/assets/test-support.js:13630:10)
at http://localhost:7357/assets/test-support.js:13736:12
at next (http://localhost:7357/assets/test-support.js:13550:14)
at http://localhost:7357/assets/test-support.js:13560:7
at next (http://localhost:7357/assets/test-support.js:13492:14)
Log: |
...
not ok 71 Chrome 67.0 - [0 ms] - Unit | Route | members/page exists
---
message: >
this.subject is not a function
stack: >
TypeError: this.subject is not a function
at Context. (http://localhost:7357/assets/tests.js:1030:24)
at invoke (http://localhost:7357/assets/test-support.js:21921:21)
at Context.method (http://localhost:7357/assets/test-support.js:21986:13)
at callFnAsync (http://localhost:7357/assets/test-support.js:13190:8)
at Test.Runnable.run (http://localhost:7357/assets/test-support.js:13142:7)
at Runner.runTest (http://localhost:7357/assets/test-support.js:13630:10)
at http://localhost:7357/assets/test-support.js:13736:12
at next (http://localhost:7357/assets/test-support.js:13550:14)
at http://localhost:7357/assets/test-support.js:13560:7
at next (http://localhost:7357/assets/test-support.js:13492:14)
Log: |
...
not ok 72 Chrome 67.0 - [0 ms] - Unit | Route | members/timeline exists
---
message: >
this.subject is not a function
stack: >
TypeError: this.subject is not a function
at Context. (http://localhost:7357/assets/tests.js:1063:24)
at invoke (http://localhost:7357/assets/test-support.js:21921:21)
at Context.method (http://localhost:7357/assets/test-support.js:21986:13)
at callFnAsync (http://localhost:7357/assets/test-support.js:13190:8)
at Test.Runnable.run (http://localhost:7357/assets/test-support.js:13142:7)
at Runner.runTest (http://localhost:7357/assets/test-support.js:13630:10)
at http://localhost:7357/assets/test-support.js:13736:12
at next (http://localhost:7357/assets/test-support.js:13550:14)
at http://localhost:7357/assets/test-support.js:13560:7
at next (http://localhost:7357/assets/test-support.js:13492:14)
Log: |
...
not ok 73 Chrome 67.0 - [1 ms] - Unit | Service | firebase "before each" hook for "set then get"
---
message: >
Cannot read property 'exports' of undefined
stack: >
TypeError: Cannot read property 'exports' of undefined
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at requireModule (http://localhost:7357/assets/vendor.js:32:18)
at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)
at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)
at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)
Log: |
...
not ok 74 Chrome 67.0 - [1 ms] - Unit | Service | firebase "after each" hook for "set then get"
---
message: >
Cannot read property 'exports' of undefined
stack: >
TypeError: Cannot read property 'exports' of undefined
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at requireModule (http://localhost:7357/assets/vendor.js:32:18)
at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)
at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)
at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)
Log: |
{ type: 'error',
text: ''TypeError: Cannot read property \'exports\' of undefined\n at Module._reify (http://localhost:7357/assets/vendor.js:148:59)\\n at Module.reify (http://localhost:7357/assets/vendor.js:135:27)\\n at Module.exports (http://localhost:7357/assets/vendor.js:109:10)\\n at Module._reify (http://localhost:7357/assets/vendor.js:148:59)\\n at Module.reify (http://localhost:7357/assets/vendor.js:135:27)\\n at Module.exports (http://localhost:7357/assets/vendor.js:109:10)\\n at requireModule (http://localhost:7357/assets/vendor.js:32:18)\\n at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)\\n at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)\\n at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)\'\n' }
...
not ok 75 Chrome 67.0 - [0 ms] - Unit | Service | kojac "before each" hook for "exists"
---
message: >
Cannot read property 'subject' of undefined
stack: >
TypeError: Cannot read property 'subject' of undefined
at exports.default.teardownSubject (http://localhost:7357/assets/test-support.js:26139:32)
at Ember.RSVP.Promise.resolve (http://localhost:7357/assets/test-support.js:25277:26)
at initializePromise (http://localhost:7357/assets/vendor.js:59524:7)
at new Promise (http://localhost:7357/assets/vendor.js:60004:35)
at nextStep (http://localhost:7357/assets/test-support.js:25276:18)
at exports.default.invokeSteps (http://localhost:7357/assets/test-support.js:25283:14)
at invokeSteps.then (http://localhost:7357/assets/test-support.js:25240:21)
at tryCatcher (http://localhost:7357/assets/vendor.js:59327:21)
at invokeCallback (http://localhost:7357/assets/vendor.js:59499:33)
at http://localhost:7357/assets/vendor.js:59563:16
Log: |
{ type: 'error',
text: ''TypeError: Cannot read property \'subject\' of undefined\n at exports.default.teardownSubject (http://localhost:7357/assets/test-support.js:26139:32)\\n at Ember.RSVP.Promise.resolve (http://localhost:7357/assets/test-support.js:25277:26)\\n at initializePromise (http://localhost:7357/assets/vendor.js:59524:7)\\n at new Promise (http://localhost:7357/assets/vendor.js:60004:35)\\n at nextStep (http://localhost:7357/assets/test-support.js:25276:18)\\n at exports.default.invokeSteps (http://localhost:7357/assets/test-support.js:25283:14)\\n at invokeSteps.then (http://localhost:7357/assets/test-support.js:25240:21)\\n at tryCatcher (http://localhost:7357/assets/vendor.js:59327:21)\\n at invokeCallback (http://localhost:7357/assets/vendor.js:59499:33)\\n at http://localhost:7357/assets/vendor.js:59563:16\'\n' }
...
not ok 76 Chrome 67.0 - [0 ms] - Unit | Service | kojac "after each" hook for "exists"
---
message: >
Cannot read property 'exports' of undefined
stack: >
TypeError: Cannot read property 'exports' of undefined
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at Module._reify (http://localhost:7357/assets/vendor.js:148:59)
at Module.reify (http://localhost:7357/assets/vendor.js:135:27)
at Module.exports (http://localhost:7357/assets/vendor.js:109:10)
at requireModule (http://localhost:7357/assets/vendor.js:32:18)
at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)
at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)
at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)
Log: |
{ type: 'error',
text: ''TypeError: Cannot read property \'exports\' of undefined\n at Module._reify (http://localhost:7357/assets/vendor.js:148:59)\\n at Module.reify (http://localhost:7357/assets/vendor.js:135:27)\\n at Module.exports (http://localhost:7357/assets/vendor.js:109:10)\\n at Module._reify (http://localhost:7357/assets/vendor.js:148:59)\\n at Module.reify (http://localhost:7357/assets/vendor.js:135:27)\\n at Module.exports (http://localhost:7357/assets/vendor.js:109:10)\\n at requireModule (http://localhost:7357/assets/vendor.js:32:18)\\n at Class._extractDefaultExport (http://localhost:7357/assets/vendor.js:133432:20)\\n at Class.resolveOther (http://localhost:7357/assets/vendor.js:133134:32)\\n at Class.superWrapper [as resolveOther] (http://localhost:7357/assets/vendor.js:53391:28)\'\n' }
...
not ok 77 Chrome 67.0 - [undefined ms] - Global error: Uncaught TypeError: Cannot read property 'subject' of undefined at http://localhost:7357/assets/test-support.js, line 21887
---
Log: |
{ type: 'error',
text: ''TypeError: Cannot read property \'subject\' of undefined\n at exports.default.teardownSubject (http://localhost:7357/assets/test-support.js:26139:32)\\n at Ember.RSVP.Promise.resolve (http://localhost:7357/assets/test-support.js:25277:26)\\n at initializePromise (http://localhost:7357/assets/vendor.js:59524:7)\\n at new Promise (http://localhost:7357/assets/vendor.js:60004:35)\\n at nextStep (http://localhost:7357/assets/test-support.js:25276:18)\\n at exports.default.invokeSteps (http://localhost:7357/assets/test-support.js:25283:14)\\n at invokeSteps.then (http://localhost:7357/assets/test-support.js:25240:21)\\n at tryCatcher (http://localhost:7357/assets/vendor.js:59327:21)\\n at invokeCallback (http://localhost:7357/assets/vendor.js:59499:33)\\n at http://localhost:7357/assets/vendor.js:59563:16\'\n' }
{ type: 'error',
testContext: { name: '', state: 'complete' },
text: 'Uncaught TypeError: Cannot read property 'subject' of undefined at http://localhost:7357/assets/test-support.js, line 21887\n' }
...
ok 78 Chrome 67.0 - [0 ms] - ESLint | tests helpers/destroy-app.js
ok 79 Chrome 67.0 - [0 ms] - ESLint | tests helpers/resolver.js
ok 80 Chrome 67.0 - [0 ms] - ESLint | tests helpers/start-app.js
ok 81 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/chat-widget-test.js
ok 82 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/ember-power-select-test.js
ok 83 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/md-text-test.js
ok 84 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/simple-image-test.js
ok 85 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/sing-sidebar-test.js
ok 86 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/student-select-test.js
ok 87 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/task-to-student-button-test.js
ok 88 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/video-player-test.js
ok 89 Chrome 67.0 - [0 ms] - ESLint | tests integration/components/visual-with-text-test.js
ok 90 Chrome 67.0 - [0 ms] - ESLint | tests integration/kojac.spec.js
ok 91 Chrome 67.0 - [0 ms] - ESLint | tests integration/kojac/kojac-firebase-login-test.js
ok 92 Chrome 67.0 - [0 ms] - ESLint | tests test-helper.js
ok 93 Chrome 67.0 - [0 ms] - ESLint | tests unit/controllers/members-test.js
ok 94 Chrome 67.0 - [0 ms] - ESLint | tests unit/controllers/members/instructor-test.js
ok 95 Chrome 67.0 - [0 ms] - ESLint | tests unit/controllers/members/student-test.js
ok 96 Chrome 67.0 - [0 ms] - ESLint | tests unit/controllers/page-test.js
ok 97 Chrome 67.0 - [0 ms] - ESLint | tests unit/models/app-cache-test.js
ok 98 Chrome 67.0 - [0 ms] - ESLint | tests unit/models/role_test.js
ok 99 Chrome 67.0 - [0 ms] - ESLint | tests unit/routes/members-test.js
ok 100 Chrome 67.0 - [0 ms] - ESLint | tests unit/routes/members/index-test.js
ok 101 Chrome 67.0 - [1 ms] - ESLint | tests unit/routes/members/instructor-test.js
ok 102 Chrome 67.0 - [0 ms] - ESLint | tests unit/routes/members/manager-test.js
ok 103 Chrome 67.0 - [0 ms] - ESLint | tests unit/routes/members/page-test.js
ok 104 Chrome 67.0 - [0 ms] - ESLint | tests unit/routes/members/student-test.js
ok 105 Chrome 67.0 - [0 ms] - ESLint | tests unit/routes/members/timeline-test.js
ok 106 Chrome 67.0 - [0 ms] - ESLint | tests unit/routes/mock/lesson-test.js
ok 107 Chrome 67.0 - [0 ms] - ESLint | tests unit/services/firebase-test.js
ok 108 Chrome 67.0 - [0 ms] - ESLint | tests unit/services/kojac-test.js
not ok 109 Chrome 67.0 - [undefined ms] - Global error: Uncaught TypeError: Cannot read property 'exports' of undefined at http://localhost:7357/assets/test-support.js, line 21887
---
Log: |
{ type: 'error',
testContext: { name: '', state: 'complete' },
text: 'Uncaught TypeError: Cannot read property 'exports' of undefined at http://localhost:7357/assets/test-support.js, line 21887\n' }
...
not ok 110 Chrome 67.0 - [undefined ms] - Global error: Uncaught TypeError: Cannot read property 'subject' of undefined at http://localhost:7357/assets/test-support.js, line 21887
---
Log: |
{ type: 'error',
testContext: { name: '', state: 'complete' },
text: 'Uncaught TypeError: Cannot read property 'subject' of undefined at http://localhost:7357/assets/test-support.js, line 21887\n' }
...
ok 111 Chrome 67.0 - [0 ms] - Role rolesContain leaf must only match whole word
ok 112 Chrome 67.0 - [0 ms] - Role rolesContain leaf must match first
ok 113 Chrome 67.0 - [0 ms] - Role rolesContain leaf must match last
ok 114 Chrome 67.0 - [0 ms] - Role rolesContain leaf must match middle
not ok 115 Chrome 67.0 - [undefined ms] - Global error: Uncaught TypeError: Cannot read property 'subject' of undefined at http://localhost:7357/assets/test-support.js, line 21887
---
Log: |
{ type: 'error',
testContext: { name: '', state: 'complete' },
text: 'Uncaught TypeError: Cannot read property 'subject' of undefined at http://localhost:7357/assets/test-support.js, line 21887\n' }
...
not ok 116 Chrome 67.0 - [undefined ms] - Global error: Uncaught TypeError: Cannot read property 'exports' of undefined at http://localhost:7357/assets/test-support.js, line 21887
---
Log: |
{ type: 'error',
testContext: { name: '', state: 'complete' },
text: 'Uncaught TypeError: Cannot read property 'exports' of undefined at http://localhost:7357/assets/test-support.js, line 21887\n' }
...
not ok 117 Chrome 67.0 - [undefined ms] - Global error: Uncaught TypeError: Cannot read property 'subject' of undefined at http://localhost:7357/assets/test-support.js, line 21887
---
Log: |
{ type: 'error',
testContext: { name: '', state: 'complete' },
text: 'Uncaught TypeError: Cannot read property 'subject' of undefined at http://localhost:7357/assets/test-support.js, line 21887\n' }
...

1..117

tests 117

pass 95

skip 0

fail 22

Testem finished with non-zero exit code. Tests failed.

Garys-MBP:browser gary$

@kellyselden
Copy link
Owner

Without seeing the code, my only guess is that ember-macro-helpers is not in the dependencies of your addon.

@buzzware
Copy link
Author

buzzware commented Aug 8, 2018

I've created this simple freshly generated (by ember 3.3) repo which narrows down the problem : https://github.com/buzzware/macro-helpers-bug

You can see the issue in this console session below.

My macro lookupId has a test lookup-macro-test.js that exists almost identically in the addon ember-computed-state-tree as well as the app lookup-app, but it passes in the addon and fails in the app.

Somehow, ember-macro-helpers is not found. Why not?

I think the "strange errors" above are caused by this. I'll update here if I find any clues.

Gary

Last login: Wed Aug  8 00:20:01 on ttys003
Garys-MacBook-Pro:browser gary$ cd ../../macro-helpers-bug/
Garys-MacBook-Pro:macro-helpers-bug gary$ ember -v
ember-cli: 3.3.0
node: 8.11.3
os: darwin x64
Garys-MacBook-Pro:macro-helpers-bug gary$ node -v
v8.11.3
Garys-MacBook-Pro:macro-helpers-bug gary$ npm -v
5.6.0
Garys-MacBook-Pro:macro-helpers-bug gary$ cd 
.git/                      ember-computed-state-tree/ lookup-app/
Garys-MacBook-Pro:macro-helpers-bug gary$ cd ember-computed-state-tree/
Garys-MacBook-Pro:ember-computed-state-tree gary$ ember t
cleaning up...
Built project successfully. Stored in "/Users/gary/repos/2018/macro-helpers-bug/ember-computed-state-tree/tmp/class-tests_dist-Nb47MApb.tmp".
ok 1 Chrome 67.0 - [1 ms] - ESLint | addon addon/utils/SimpleCache.js
ok 2 Chrome 67.0 - [1 ms] - ESLint | app app.js
ok 3 Chrome 67.0 - [0 ms] - ESLint | app resolver.js
ok 4 Chrome 67.0 - [0 ms] - ESLint | app router.js
ok 5 Chrome 67.0 - [0 ms] - ESLint | tests helpers/destroy-app.js
ok 6 Chrome 67.0 - [0 ms] - ESLint | tests helpers/resolver.js
ok 7 Chrome 67.0 - [0 ms] - ESLint | tests helpers/start-app.js
ok 8 Chrome 67.0 - [0 ms] - ESLint | tests test-helper.js
ok 9 Chrome 67.0 - [0 ms] - ESLint | tests unit/lookup-macro-test.js
ok 10 Chrome 67.0 - [6 ms] - SimpleCache should lookupId single
ok 11 Chrome 67.0 - [2 ms] - SimpleCache should lookupId array

1..11
# tests 11
# pass  11
# skip  0
# fail  0

# ok
Garys-MacBook-Pro:ember-computed-state-tree gary$ cd ../lookup-app/
Garys-MacBook-Pro:lookup-app gary$ ember t
cleaning up...
Built project successfully. Stored in "/Users/gary/repos/2018/macro-helpers-bug/lookup-app/tmp/class-tests_dist-XydZ7Zuu.tmp".
not ok 1 Chrome 67.0 - [0 ms] - TestLoader Failures lookup-app/tests/unit/lookup-macro-test: could not be loaded
    ---
        message: >
            Could not find module `ember-macro-helpers` imported from `ember-computed-state-tree/utils/SimpleCache`
        stack: >
            Error: Could not find module `ember-macro-helpers` imported from `ember-computed-state-tree/utils/SimpleCache`
                at missingModule (http://localhost:7357/assets/vendor.js:252:11)
                at findModule (http://localhost:7357/assets/vendor.js:263:7)
                at Module.findDeps (http://localhost:7357/assets/vendor.js:173:24)
                at findModule (http://localhost:7357/assets/vendor.js:267:11)
                at Module.findDeps (http://localhost:7357/assets/vendor.js:173:24)
                at findModule (http://localhost:7357/assets/vendor.js:267:11)
                at requireModule (http://localhost:7357/assets/vendor.js:29:15)
                at TestLoader.require (http://localhost:7357/assets/test-support.js:24501:9)
                at TestLoader.loadModules (http://localhost:7357/assets/test-support.js:24494:14)
                at Function.load (http://localhost:7357/assets/test-support.js:24453:24)
        Log: |
    ...
ok 2 Chrome 67.0 - [0 ms] - ESLint | app app.js
ok 3 Chrome 67.0 - [1 ms] - ESLint | app resolver.js
ok 4 Chrome 67.0 - [0 ms] - ESLint | app router.js
ok 5 Chrome 67.0 - [0 ms] - ESLint | tests helpers/destroy-app.js
ok 6 Chrome 67.0 - [0 ms] - ESLint | tests helpers/resolver.js
ok 7 Chrome 67.0 - [0 ms] - ESLint | tests helpers/start-app.js
ok 8 Chrome 67.0 - [0 ms] - ESLint | tests test-helper.js
ok 9 Chrome 67.0 - [0 ms] - ESLint | tests unit/lookup-macro-test.js

1..9
# tests 9
# pass  8
# skip  0
# fail  1
Testem finished with non-zero exit code. Tests failed.

Garys-MacBook-Pro:lookup-app gary$ 

@buzzware
Copy link
Author

buzzware commented Aug 8, 2018

The app test passes if I do "ember install ember-macro-helpers" in the lookup-app folder.
I've always assumed addon dependencies were automatically loaded and don't need to be added to the app. Is that so? Is there something special about ember-macro-helpers that requires it to be added to the app ?
I'm following https://medium.com/@abhishekgupta_60547/how-to-manage-and-use-dependencies-in-your-ember-addon-d8e5ff093a8a to add a blueprint to add ember-macro-helpers. Is that the right thing to do?

@buzzware
Copy link
Author

buzzware commented Aug 9, 2018

I'm not 100% sure, but I think the original issue was either due to ember-macro-helpers not being installed in the app, or perhaps a different version. Anyway, the original problem is not occurring in my app anymore.

@buzzware buzzware closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants