small medium large xlarge

Generic-user-small
26 Jun 2017, 17:21
George Pasley (1 post)

I’m getting this error:

Customer Search Search by Email Failure/Error: visit “/customers”

 Capybara::Poltergeist::JavascriptError:
   One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
 
   TypeError: undefined is not a constructor (evaluating 'angular.
     module('ngRoute', []).
     info({ angularVersion: '1.6.4' })')
   TypeError: undefined is not a constructor (evaluating 'angular.
     module('ngRoute', []).
     info({ angularVersion: '1.6.4' })')
       at http://127.0.0.1:60036/assets/application.js:44249
 # /Users/gpasley/.rvm/gems/ruby-2.2.2/gems/poltergeist-1.15.0/lib/capybara/poltergeist/browser.rb:377:in `command'
 # /Users/gpasley/.rvm/gems/ruby-2.2.2/gems/poltergeist-1.15.0/lib/capybara/poltergeist/browser.rb:36:in `visit'
 # /Users/gpasley/.rvm/gems/ruby-2.2.2/gems/poltergeist-1.15.0/lib/capybara/poltergeist/driver.rb:97:in `visit'
 # /Users/gpasley/.rvm/gems/ruby-2.2.2/gems/capybara-2.14.3/lib/capybara/session.rb:269:in `visit'
 # /Users/gpasley/.rvm/gems/ruby-2.2.2/gems/capybara-2.14.3/lib/capybara/dsl.rb:50:in `block (2 levels) in <module:DSL>'
 # ./spec/features/customer_search_spec.rb:28:in `block (2 levels) in <top (required)>' ---

Github repo is here https://github.com/gpasley/rails-angular

Dmfcb_pragsmall
26 Jun 2017, 17:58
David Copeland (467 posts)

It looks like you have a different version of angular-route than you do of angular. They have to be the same version and unfortubnately, Bower won’t just figure it out. You’ll need to put the explicit versions in Bowerfile

You must be logged in to comment