Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Long errors in a separate gulp build #596

Closed
34r7h opened this issue Apr 23, 2015 · 5 comments
Closed

Long errors in a separate gulp build #596

34r7h opened this issue Apr 23, 2015 · 5 comments

Comments

@34r7h
Copy link

34r7h commented Apr 23, 2015

Hi we totally love the work put in here. We're trying to use foundation-apps css and js (including the template.js file) but get a long string of errors. Can you help troubleshoot the problem please?

here's the log output from gulp:

[18:02:41] Starting 'html'...
[18:02:41] Finished 'html' after 5.94 ms
[BS] 14 files changed (admin-ui-d.html, medviz-sections-d.html, agenda-d.html, medviz-form-d.html, medviz-nav-d.html, medviz-table-d.html, profile-d.html, auth-d.html, medviz-footer-d.html, medviz-header-d.html, features-d.html, fold-d.html, testimonials-d.html, index.html)
^Cios-MacBook-Air:medviz i$ gulp serve
[18:21:17] Using gulpfile ~/Apps/Work/JaaPharma/medviz/gulpfile.js
[18:21:17] Starting 'default'...
[18:21:17] Starting 'injectAll'...
[18:21:17] Starting 'wiredep'...
[18:21:17] Finished 'default' after 24 ms
[18:21:17] Starting 'serve'...
[18:21:17] Finished 'serve' after 15 μs
[18:21:17] Finished 'wiredep' after 138 ms
[18:21:17] Starting 'injectScripts'...
[18:21:17] Finished 'injectScripts' after 12 ms
[18:21:17] Starting 'injectStyles'...
[18:21:17] Finished 'injectStyles' after 11 ms
[18:21:17] Finished 'injectAll' after 163 ms
[18:21:17] Starting 'buildStyles'...
[18:21:17] Starting 'injectStyles'...
[18:21:17] Finished 'injectStyles' after 4.65 ms
[18:21:17] Starting 'sass'...
[18:21:17] Finished 'sass' after 13 ms
[18:21:17] Finished 'buildStyles' after 19 ms
[18:21:17] Starting 'test'...
[18:21:17] Finished 'test' after 2.72 ms
[18:21:17] Starting 'browserSync'...
[18:21:18] Finished 'browserSync' after 296 ms
[18:21:18] Starting 'watch'...
[18:21:18] Finished 'watch' after 38 ms
[18:21:18] Starting Karma server...
[BS] Access URLs:


   Local: http://localhost:3000
External: http://192.168.0.11:3000

      UI: http://localhost:3001

UI External: http://192.168.0.11:3001


[BS] Serving files from: ./app
[18:21:18] gulp-inject 17 files into index.html.
[18:21:18] gulp-inject 25 files into main.scss.
[18:21:18] gulp-inject 25 files into main.scss.
[18:21:19] Starting 'html'...
[18:21:19] Finished 'html' after 4.51 ms
[18:21:19] Starting 'html'...
[18:21:19] Finished 'html' after 3.57 ms
[BS] 14 files changed (agenda-d.html, medviz-form-d.html, medviz-nav-d.html, medviz-table-d.html, auth-d.html, profile-d.html, admin-ui-d.html, medviz-sections-d.html, medviz-footer-d.html, medviz-header-d.html, features-d.html, fold-d.html, testimonials-d.html, index.html)
[BS] 14 files changed (admin-ui-d.html, medviz-sections-d.html, agenda-d.html, auth-d.html, profile-d.html, medviz-form-d.html, medviz-nav-d.html, medviz-table-d.html, medviz-footer-d.html, medviz-header-d.html, features-d.html, fold-d.html, testimonials-d.html, index.html)
WARN [karma]: Port 9876 in use
WARN [karma]: Port 9877 in use
WARN [karma]: Port 9878 in use
INFO [karma]: Karma v0.12.31 server started at http://localhost:9879/
INFO [launcher]: Starting browser PhantomJS
[18:21:30] Starting 'html'...
[18:21:30] Finished 'html' after 15 ms
[BS] 14 files changed (admin-ui-d.html, medviz-sections-d.html, agenda-d.html, auth-d.html, profile-d.html, medviz-form-d.html, medviz-nav-d.html, medviz-table-d.html, medviz-footer-d.html, medviz-header-d.html, features-d.html, fold-d.html, testimonials-d.html, index.html)
INFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket TRevgPcOi29Fo8vP3W97 with id 7772162
PhantomJS 1.9.8 (Mac OS X) Factory: Api should be defined FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Factory: Data should be defined FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: adminUi should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: medvizSections should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: agenda should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: auth should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: profile should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: medvizForm should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: medvizNav should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: medvizTable should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: medvizFooter should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: medvizHeader should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: features should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: fold should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X) Directive: testimonials should do something FAILED
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')
at init (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:630)
at mqInitRun (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/foundation-apps/dist/js/foundation-apps.js:596)
at invoke (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4203)
at /Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025
at forEach (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:323)
at createInjector (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular/angular.js:4025)
at workFn (/Users/i/Apps/Work/JaaPharma/medviz/app/bower_components/angular-mocks/angular-mocks.js:2425)
PhantomJS 1.9.8 (Mac OS X): Executed 17 of 17 (15 FAILED) (0.06 secs / 1.312 secs)

@gakimball
Copy link
Contributor

So it looks like you're trying to run unit tests with PhantomJS?

Here's the key error: TypeError: 'null' is not an object (evaluating 'mediaQueries[key].replace')

Media query settings are stored in a Sass variable, which we pass to the JS by serializing it and attaching it to a specific <meta> tag. The JavaScript reads the style attribute of this special meta tag, and turns it into an object of breakpoints.

We've seen this before, and the reason it's happening is because the PhantomJS instance isn't referencing any compiled CSS. We probably need a workaround for this, but Interchange specifically needs this breakpoints. Maybe we can get around it by just loading in a default set if it can't find any.

@34r7h
Copy link
Author

34r7h commented Apr 23, 2015

thank ya.. that makes sense and it doesn't seem to affect the app, outside of 10-20 seconds of terminal throwing that error after an edit. Do you suggest that we should make an empty object as default so that it doesn't go for the null and if so, where should that get defined?

@gakimball
Copy link
Contributor

I think this is something we can fix, by dropping in a pre-set list of media queries if pulling from the <meta> tag doesn't work. We had this issue with the routing plugin as well, and we were able to fix that.

@34r7h
Copy link
Author

34r7h commented Apr 23, 2015

orite, thank you.! looking forward to testing the patch when it's ready.

@ghost
Copy link

ghost commented May 5, 2015

Hi, I also encountered this error. I have to run unit tests with jasmine/karma. I really need a quickfix for this issue. Does anyone have a solution for this yet?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants