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

Error Unknown provider: euiHostProvider #78

Open
iamstoick opened this issue Mar 25, 2016 · 2 comments
Open

Error Unknown provider: euiHostProvider #78

iamstoick opened this issue Mar 25, 2016 · 2 comments

Comments

@iamstoick
Copy link

I am using the demo and I am getting the below error.
Error: [$injector:unpr] Unknown provider: euiHostProvider <- euiHost <- es angular.js:9778

I changed:

.constant('euiHost', 'http://localhost:9200');

to

elasticsearch-drupal-1', 'http://localhost:9200'

and

<body ng-app="tutorial" eui-index="'CHANGE_TO_INDEX'">

to

<body ng-app="tutorial" eui-index="'elasticsearchindex'">

and

<eui-searchbox field="'title'"></eui-searchbox> <!-- ACTION: change to field to search on -->
                <h3>Single select facet</h3>
                <eui-singleselect field="'body:value'" size="5"></eui-singleselect> <!-- ACTION: change to field to use as facet -->
                <h3>Multi select facet</h3>
                <eui-checklist field="'search_api_url'" size="10"></eui-checklist> <!-- ACTION: change to field to use as facet -->

Are there more parts that I need to change based on my configurations?

@YousefED
Copy link
Owner

Any other errors showing up in the console? Seems like it's not loading the library correctly.

If you can, please share your complete code / fiddle.

@SthPhoenix
Copy link

In string:
.constant('euiHost', 'http://localhost:9200');

Isn't euiHost a parameter name?
If so, why did you changed it to elasticsearch-drupal-1?

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

3 participants