Skip to Content
1
Jun 05, 2022 at 07:44 PM

Cannot use preview function in SAP Business Application Studio - t.close is not a function

1423 Views

Hello all

I have been following several tutorials where BAS is used and cannot use the preview functionality at all. This includes SAPUI5 applications using a local CAP application, using an ABAP service (RAP), using a service in SAP Netweaver test system (ES5), and using the Northwind OData test service.

When I execute a run configuration (or, say, choose Preview Application from the application info page), although it says the server is started, the preview does not open and it shows a notification saying "t.close is not a function" (screenshot below). "Ports: Preview" command shows the exposed port and when I select it simply does nothing, without showing or saying anything.

image.png

The debugger console shows the following:

image.png

I could fix the first error in the debugger console by adding "resolveSourceMapLocations" configuration in the launch.json file. But the main problem persists.

After hitting the problem, I deleted the existing BAS subscription and created a new one. I also tried Chrome and Edge browsers. No luck. Considering BAS comes with predefined plumbing and I simply use app generators, I am confused about why such errors occur in a clean subscription and makes me think I might have overlooked an essential step.

Any ideas?

Kind Regards

Attachments

image.png (3.1 kB)
image.png (86.5 kB)