-
-
Notifications
You must be signed in to change notification settings - Fork 241
Remove @angular/http
from the dependecies
#1842
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
Comments
The entire NSHttp module should be removed since Angular 8 no longer even has an Http module (only HttpClient). IMO [email protected] should be unpublished and 8.0.3 published with this code removed as it should have never been released with an unsupported beta library as a dependency. |
Hi @charsleysa , Have you experienced any issues related to the use of the @angular/http in the [email protected] ? In all of our tests the latest "@angular/http": "8.0.0-beta.10" version is working correctly no matter that it is a beta version. We are planning to remove this as soon as possible but if you feel like contributing to the project we welcome your PR and contribution. Thank you. |
We are seeing compilation errors wherever we include the
This seems to be due to the NSHttp module being reference by the root I would be happy to contribute a PR, though this is more of a release issue as this code should have been removed before My proposed solution effectively rolls in the breaking change into the Thoughts? |
Does your project have a dependency of I am asking you if you find any real issues with having |
I can confirm that adding Thanks for the help. |
Yes that is correct, webpack will tree share that dep from the bundle and it will not affect the size of the app. Also in NativeScript 6.0.0 webpack is executed in all builds by default so the tree sharking is also present for local development. You are welcome. We are in the process of addressing this and migrating from this deprecated package or deprecating it so we can remove it safely in future version. |
@VladimirAmiorkov this can be closed now as it was solved by #1942 |
Resolved via #1942 |
Environment
Describe the bug
The current 8.0.0 version of the plugin has a dependency for the
@angular/http
which is deprecated and replaced by the@angular/common/http
package.The text was updated successfully, but these errors were encountered: