I saw a couple of similar posts to this, however, they were all related to Props passed functions. This is somewhate different.
I'm getting this error, however the function is defined, I made the same import on another jsx file an have no issues calling methods from my class
SOAP Controller
class SoapController {
constructor(segurisignUser) {
this.segurisignUser = segurisignUser;
this.passwordDomain = "";
this.userDomain = "ws_test";
this.idDomain = "1";
this.url = "";
}
async createUser(user) {
// ...snip...
};
}
Login
const submit = async () => {
const soapController = new SoapController();
setDisabled(true);
setLoading(true);
const resultado = await soapController.createUser({ email, password, name });
};
Thanks!