Closed MurhafSousli closed 7 years ago
@adrianq PR is ready to be merged
@MurhafSousli I am getting this error when running ionic serve. Can you please have a lot at it and let me know? I deleted node_modules folder, npm install and ionic serve.
@adrianq I just double checked it now (got a fresh clone and npm install). It is working without getting this error. but sometimes npm gets the old package files instead of installing the selected version. maybe you need to clear npm cache!
I can see from the screenshot that the installed StoreModule is the older version therefore it is causing the error, Can you try a fresh clone instead?
Ok, will do and let you know. Thank you for looking into this that quick!
@MurhafSousli I couldn't make it work. I have tried everything: fresh git clone, clean the cache, delete .npm folder, update store to 4.0.3, read a few interesting threads for a Sunday morning (https://github.com/ngrx/platform/issues/189, https://github.com/ngrx/platform/issues/264)... Finally, the bit of code I have just committed seems to do the trick. At least I can run the server and log-in. Please give it a try yourself and let me know if it is working for you...
btw, I am also getting this warning when running ionic serve
in case you can have a look at it too:
Thanks!
@adrianq For the warning, if you look at the file auth.ts
We are actually using the import fromAuth
, so the warning is false and the linter is not detecting the usage. Most probably it is because we are using import * as fromAuth
and then we are only using its inner state fromAuth.State
.
This can be solved by importing the interface directly instead. but this is the way ngrx/platform do in all their examples, check their login-page
I think It is better to have something like Travis CI or GitLab to lint and run a build on every push even if it is passing the errors. we will still be able to look at the online terminal
Do you want to make any changes to this PR?
Ok, thanks @MurhafSousli. I saw that it was being used and didn't want to change it. What do you think about my previous comment and commit? It is strange that you don't see that error but if my change doesn't break anything for you I can keep reviewing the PR and merge it.
... and yes I want to have travis running lint. I even made an attempt. We can talk about it tomorrow...
I just opened a new issue regards to this linting warning on ngrx/example, let's see what they say about it
@adrianq Yes, let's keep the recent commit if it fixes the build, It won't break anything on my side. btw we have the same interface used in the later PRs.
Main changes:
Side changes: