-
Notifications
You must be signed in to change notification settings - Fork 1
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
JS Errors #17
Comments
Could you go inside the module and |
OK, I got this: $ gulp build Error: Cannot find module 'jshint/src/cli' |
@smoore0509 what node version are you using? I just cloned the repo and |
$ node -v |
I've never tested it with that node version; could you try using nvm and setting node versión to something in 4.x? |
OK, I've switched to 4.2.4, and am still getting the same error output on gulp build. |
Could you remove node_modules and bower_components folders and then rerun |
Well the gulp build seems to have worked fine, though the npm install popped out a couple of warnings:
Still experiencing the same errors in the console, sadly. |
Yes; that's expected behavior; could you comment out the indicated line; rerun |
Just to be clear, we're talking about line 119 in gulpfile.js?
|
Yes; sure. It enables Drupal to use js file without minification. |
Gulp build seems to have run fine:
Here's what I'm seeing in the console on the page load:
|
@smoore0509 sorry for delay in response. Still having issues? Could you ensure that equivalent to this (https://github.com/ManatiCR/apachesolr_angularjs_search/blob/7.x-1.x/src/app/app.module.js#L33) and this (https://github.com/ManatiCR/apachesolr_angularjs_search/blob/7.x-1.x/src/app/main/main.controller.js#L12) in dist/app/app.js is getting executed? (maybe placing console.log or similar) |
Thanks for staying with this. I've stuck in some console.log() calls both before and after the lines you mentioned, and none of them are getting executed.
and
The console.log calls aren't happening. Still getting all this in the console:
|
Hi there, Assuming you're not using IE (it's supposed to work on IE < 9, but I didn't fully tested it); could you outline the steps you followed to try to get this working, so that I could try to setup an environment and reproduce the error? Drupal flavor (vanilla or distro), some important enabled modules that could potentially create a conflict, jquery update (and version if it's in use), etc. I really hope this could help me to reproduce the error and try to help you |
Hi Kevin - thanks for getting back to me. A sample search is here: Please let me know what else I can tell you. |
Hey, that's weird; It looks like you haven't configured the advanced search block (there are no available fields to search); could you try configuring the advanced search block and place it in a different path than the results page? Then try to use it. |
Actually I did - and I had a lot of trouble with the draggable interface, getting the target columns to show up properly, but I did eventually get it started. |
Yes, that config GUI is not so great :/ Actually for some stuff maybe you will need to do some custom code. I'm getting access denied to the provided link. |
Sorry, forgot to publish that node - you should be able to get to it now
|
@smoore0509 hey, I think I found the issue; could you pull the latest version of this GH repo? I also fixed 2 other bugs. |
Well I'm getting a different error... perhaps that's progress :-)
I noticed you made a change to the .install file - do I need to uninstall and re-install? |
Where did you get that error? It looks like it's working now |
Only if you're not logged in! |
OK I've determined that there's definitely a conflict with the contrib Admin module (https://www.drupal.org/project/admin) that prevents the Advanced search fields from initiating, and seems to be responsible for the failure of the app to start. |
Those are great news! Thanks, On Sun, Jun 5, 2016, 14:27 Sam Moore [email protected] wrote:
|
Thanks for staying with this. Overall this module is helping me a lot, so it's very gratifying to be able to get it working. |
I'm getting errors when the apachesolr-angularjs-search block loads on my pages.
To wit:
_app.js?o6q3hw:1 Uncaught TypeError: Cannot read property 'prototype' of undefined
vendor.js?o6q3hw:2 Error: [ng:areq] Argument 'mainController' is not a function, got undefined
_and finally
_vendor.js?o6q3hw:1 Uncaught Error: [$injector:unpr] Unknown provider: drupalDataServiceProvider <- drupalDataService
_
This looks to me as if the app isn't initializing properly in the first place.
Can anyone point me to the next step in debugging this?
TIA
The text was updated successfully, but these errors were encountered: