-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cannot read property 'call' of undefined #48
Comments
You should probably remove old dependencies:
Also, make sure your
You could get more details about the error by using a custom error handler and logging https://angular.io/api/core/ErrorHandler#example (do this in your app module) I can say with confidence that http requests are working as we have plenty of migrated production apps with angular 12+. |
@edusperoni thank you sooo much for your fast answer. I'm quite new so i just have two questions. About the polyfills i just realized i don't have such a file, i just create it myself ? And just about the tns-platform-declarations, i saw you changed this into one line but when i tried i had an issue and i had to change it to:
to make it work Again, thank you very much |
Okay you made it work @edusperoni , i removed all the dependencies beside the tns-platform-declarations and added the pollyfils and it worked. Thank you soooo much ! |
Hi, i opened the ticket in nativescript-angular but i assume it should be here because it happened after i upgraded from nativescript 6 to 8.1.5. Thank you.
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):There is my package.json
Angular CLI: 13.1.2
Node: 16.13.1
Describe the bug
I upgraded from nativescript 6 to 8.1.5, and since then, every http call that i do give me the following error:
From what i found on the internet it may be related to webpack but i don't know. (references :
https://stackoverflow.com/questions/41549923/angular-cannot-read-property-call-of-undefined-when-bootstrapping
webpack/webpack#959 )
To Reproduce
Upgrade a project from nativescript 6 to 8.1.5 and make an http call.
Expected behavior
HTTP calls to work
Additional context
main.ts
webpack.config.js
tnsconfig.tns.json
app.module.ts
The text was updated successfully, but these errors were encountered: