You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
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:
TypeError: Cannot read property 'call' of undefined
From what i found on the internet it may be related to webpack but i don't know.
To Reproduce
Upgrade a project from nativescript 6 to 8.1.5 and make an http call.
Expected behavior
HTTP call to work
Additional context
main.ts
// this import should be first in order to load some required settings (like globals and reflect-metadata)
import Theme from "@nativescript/theme";
import { runNativeScriptAngularApp, platformNativeScript } from '@nativescript/angular';
import { AppModule } from "./app/app.module";
import 'zone.js';
runNativeScriptAngularApp({
appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),
});
Theme.setMode(Theme.Light);
webpack.config.js
const webpack = require("@nativescript/webpack");
module.exports = (env) => {
webpack.init(env);
// Learn how to customize:
// https://docs.nativescript.org/webpack
return webpack.resolveConfig();
};
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
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.
To Reproduce
Upgrade a project from nativescript 6 to 8.1.5 and make an http call.
Expected behavior
HTTP call 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: