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

Errors using Angular CLI #9

Closed
andelz opened this issue Jul 19, 2017 · 6 comments
Closed

Errors using Angular CLI #9

andelz opened this issue Jul 19, 2017 · 6 comments
Assignees
Labels

Comments

@andelz
Copy link

andelz commented Jul 19, 2017

While trying to use your Module in a project created using Angular CLI I faced some Errors. They may be caused by something I recognized in earlier projects using the CLI. In some cases CLI is not able to bundle the application code correctly when you are exporting more than one class/interface/component from a single file. In my case I got the following error when trying to run the application (not while packaging/building it):

Error: No provider for GoogleApiService!

I think the reason is, that you export GoogleApiService and NG_GAPI_CONFIG from one file.
Could you please verify that your module works with recent CLI projects, because I'd love to use it in my projects?

Thanks a lot!

@rubenCodeforges
Copy link
Owner

rubenCodeforges commented Jul 19, 2017 via email

@rubenCodeforges
Copy link
Owner

@andelz tell me one more thing , did you used the npm version or the repo itself ?

@andelz
Copy link
Author

andelz commented Jul 19, 2017

Used the npm package.

rubenCodeforges added a commit that referenced this issue Jul 20, 2017
…ssue-9

added missing provider , issue #9 fixed
@rubenCodeforges
Copy link
Owner

rubenCodeforges commented Jul 20, 2017

@andelz the issue is fixed.
as i told , it was not about exports in one file , this is ok and will never be an issue as long as you dont use the default flag.

the issue was very easy , ive just forgot to add the GoogleApiService in the module providers field.

Please update ng-gapi to version 0.0.42 ( better remove it first from node_modules then do fresh install)

And of course if you like it , please give it a star ;)

@andelz
Copy link
Author

andelz commented Jul 20, 2017

No more errors. Thank you Sir!

@rubenCodeforges
Copy link
Owner

rubenCodeforges commented Jul 20, 2017

@andelz thank you for your feedback ! I appreciate it !
I you would like to support the lib , please star the repo, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants