on 05-04-2023 1:02 PM
Hi Experts,
I am experiencing a strange error when trying to run my CAP UI5 app, which was working just fine a couple of hours ago and still is for my team, we are all using the same repository and run configurations. I have pulled all changes and am experiencing this error regardless of branch.
Specifically, I am getting the below console error and the UI does not render - no other significant errors. I can run other apps from other Dev Spaces in the same BAS, so can I conclude that this is an issue with my Dev space?
Btw, running on latest Ui5 version, 1.113.0.
I am trying to set up a new dev space now but it would be good to know the root cause and if this is a known issue.
Thanks a lot.
Solved by changing the version in the run configuration from the 'latest' as the default in the launch.json file to;
"{\"version\":\"1.96.17\"}"
Not sure why this suddenly occurred but for now we will avoid running the app with the latest version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can be very frustrating for new developers in BAS when using the launch.json or "Run and Debug" function, because in launch.json again own configurations are hidden.
I would recommend launching the application via the console and npm scripts. Then such errors could not occur at all.
gregorw We have discussed this problem just recently 🙂
Hi Marian,
Thanks for your comment.
npm run start was not suitable for this case, as we need to run the server and the UI separately for authentication. npm run start is running the server but it is not loading the environment variables required for the uaa service, which we needed to define in separate env files with separate configurations. Hope this makes sense 🙂
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.