Skip to content

Instantly share code, notes, and snippets.

@guyjacks
Created August 31, 2015 14:03
Show Gist options
  • Save guyjacks/4b3fc7626adebe00f96d to your computer and use it in GitHub Desktop.
Save guyjacks/4b3fc7626adebe00f96d to your computer and use it in GitHub Desktop.
INFO [watcher]: Changed file "/Users/guyjacks/projects/adr-demo/app/notes.model.js".
Chrome 44.0.2403 (Mac OS X 10.10.5) NotesModel get gets a note FAILED
Error: [$injector:modulerr] Failed to instantiate module notes.model due to:
Error: [$injector:modulerr] Failed to instantiate module restangular due to:
ReferenceError: _ is not defined
at Object.Configurer.init (/Users/guyjacks/projects/adr-demo/node_modules/restangular/dist/restangular.js:31:26)
at new <anonymous> (/Users/guyjacks/projects/adr-demo/node_modules/restangular/dist/restangular.js:757:14)
at invoke (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4450:17)
at Object.instantiate (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4458:27)
at provider (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4293:36)
at Object.provider (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4285:16)
at runInvokeQueue (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4356:35)
at /Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4364:11
at forEach (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:336:20)
at loadModules (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4346:5)
http://errors.angularjs.org/1.4.3/$injector/modulerr?p0=restangular&p1=ReferenceError%3A%20_%20is%20not%20defined%0A%20%20%20%20at%20Object.Configurer.init%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Frestangular%2Fdist%2Frestangular.js%3F25c0af8e5820323ef1c4b9bc67d9693a704c811f%3A31%3A26)%0A%20%20%20%20at%20new%20%3Canonymous%3E%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Frestangular%2Fdist%2Frestangular.js%3F25c0af8e5820323ef1c4b9bc67d9693a704c811f%3A757%3A14)%0A%20%20%20%20at%20invoke%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4450%3A17)%0A%20%20%20%20at%20Object.instantiate%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4458%3A27)%0A%20%20%20%20at%20provider%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4293%3A36)%0A%20%20%20%20at%20Object.provider%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4285%3A16)%0A%20%20%20%20at%20runInvokeQueue%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4356%3A35)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4364%3A11%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A336%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4346%3A5)
at /Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:68:12
at /Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4385:15
at forEach (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:336:20)
at loadModules (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4346:5)
at /Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4363:40
at forEach (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:336:20)
at loadModules (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4346:5)
at Object.createInjector [as injector] (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4272:11)
at Object.workFn (/Users/guyjacks/projects/adr-demo/node_modules/angular-mocks/angular-mocks.js:2393:52)
http://errors.angularjs.org/1.4.3/$injector/modulerr?p0=notes.model&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20restangular%20due%20to%3A%0AReferenceError%3A%20_%20is%20not%20defined%0A%20%20%20%20at%20Object.Configurer.init%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Frestangular%2Fdist%2Frestangular.js%3F25c0af8e5820323ef1c4b9bc67d9693a704c811f%3A31%3A26)%0A%20%20%20%20at%20new%20%3Canonymous%3E%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Frestangular%2Fdist%2Frestangular.js%3F25c0af8e5820323ef1c4b9bc67d9693a704c811f%3A757%3A14)%0A%20%20%20%20at%20invoke%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4450%3A17)%0A%20%20%20%20at%20Object.instantiate%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4458%3A27)%0A%20%20%20%20at%20provider%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4293%3A36)%0A%20%20%20%20at%20Object.provider%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4285%3A16)%0A%20%20%20%20at%20runInvokeQueue%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4356%3A35)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4364%3A11%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A336%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4346%3A5)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.3%2F%24injector%2Fmodulerr%3Fp0%3Drestangular%26p1%3DReferenceError%253A%2520_%2520is%2520not%2520defined%250A%2520%2520%2520%2520at%2520Object.Configurer.init%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Frestangular%252Fdist%252Frestangular.js%253F25c0af8e5820323ef1c4b9bc67d9693a704c811f%253A31%253A26)%250A%2520%2520%2520%2520at%2520new%2520%253Canonymous%253E%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Frestangular%252Fdist%252Frestangular.js%253F25c0af8e5820323ef1c4b9bc67d9693a704c811f%253A757%253A14)%250A%2520%2520%2520%2520at%2520invoke%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Fangular%252Fangular.js%253Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%253A4450%253A17)%250A%2520%2520%2520%2520at%2520Object.instantiate%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Fangular%252Fangular.js%253Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%253A4458%253A27)%250A%2520%2520%2520%2520at%2520provider%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Fangular%252Fangular.js%253Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%253A4293%253A36)%250A%2520%2520%2520%2520at%2520Object.provider%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Fangular%252Fangular.js%253Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%253A4285%253A16)%250A%2520%2520%2520%2520at%2520runInvokeQueue%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Fangular%252Fangular.js%253Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%253A4356%253A35)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Fangular%252Fangular.js%253Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%253A4364%253A11%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Fangular%252Fangular.js%253Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%253A336%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Flocalhost%253A9876%252Fbase%252Fnode_modules%252Fangular%252Fangular.js%253Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%253A4346%253A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4385%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A336%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4346%3A5)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4363%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A336%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4346%3A5)%0A%20%20%20%20at%20Object.createInjector%20%5Bas%20injector%5D%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3Fd70e875e5f57e77ca955a53b26abd0a42e4cd90b%3A4272%3A11)%0A%20%20%20%20at%20Object.workFn%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular-mocks%2Fangular-mocks.js%3F709f72c7c630741a9dc29981e9c719308f54bae0%3A2393%3A52)%0A%20%20%20%20at%20attemptSync%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F578a1e5ff14db21b04e2d6db7fd0eda37042440c%3A1789%3A24)
at /Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:68:12
at /Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4385:15
at forEach (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:336:20)
at loadModules (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4346:5)
at Object.createInjector [as injector] (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4272:11)
at Object.workFn (/Users/guyjacks/projects/adr-demo/node_modules/angular-mocks/angular-mocks.js:2393:52)
TypeError: Cannot read property 'when' of undefined
at Object.<anonymous> (/Users/guyjacks/projects/adr-demo/spec/notesModelSpec.js:35:15)
Chrome 44.0.2403 (Mac OS X 10.10.5): Executed 3 of 3 (1 FAILED) (0.086 secs / 0.078 secs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment