Hello!
I have a React Native project using front-generator.
I have been trying for some time to solve a problem and unfortunately I do not succeed.
The message received is:
“[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: ‘Reaction[Autorun@5]’, [TypeError: this.cubaREST.getRoles is not a function. (In ‘this.cubaREST.getRoles()’, ‘this.cubaREST.getRoles’ is undefined)]”
The platform version is 7.2.3,
mobx version is 4,
mobx-react is 5
Hi,
Could you please attach package.json
and package-lock.json
?
Also, do you commit package-lock.json
to VCS in your project?
package.json (1.9 KB) package-lock.json (712.5 KB)
You can find attached package.json but also package-lock.json.
Yes, I commit package-lock.json.
Hi @bogdan,
Please try updating @cuba-platform/react-core
to version ^0.1.0
and @cuba-platform/rest
to ^0.7.3
.
Best regards,
Vyacheslav
Thanks for the reply, I made the update.
Things are a little better because I can continue after logging in but I still get this alert:
“ok”: false,
“status”: 404,
“statusText”: undefined,
“type”: “default”,
“url”: “x/app/rest/v2/roles”,
Could you please specify which version of REST API you are using? I assume it’s 7.2?
Best regards,
Vyacheslav
The REST API version is 7.2.0
OK, thank you. We are looking into it.
Hi @bogdan,
We have opened an issue and are working on it. Once it’s done, we’ll release a new patch version that should fix the problem.
Thank you for reporting this problem to us.
Thanks for help!