-
Notifications
You must be signed in to change notification settings - Fork 42
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
Comments
Hey thanks for the report. I use the latest cli for development and it's
not about export but about missing provider. I guess I know where the
problem is. I'll check it today
…On Jul 19, 2017 7:25 AM, "andelz" ***@***.***> wrote:
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!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFwNnShsRDZKttTJaAF8W4vy075lOt5Aks5sPZNEgaJpZM4OcPhp>
.
|
@andelz tell me one more thing , did you used the npm version or the repo itself ? |
Used the npm package. |
…ssue-9 added missing provider , issue #9 fixed
@andelz the issue is fixed. 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 |
No more errors. Thank you Sir! |
@andelz thank you for your feedback ! I appreciate it ! |
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):
I think the reason is, that you export
GoogleApiService
andNG_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!
The text was updated successfully, but these errors were encountered: