cancel
Showing results for 
Search instead for 
Did you mean: 

Capire Fiori Preview not working with latest Launchpad Version

matteoprinetti
Participant
0 Kudos

To reproduce: Start Business Application Studio (or Visual Studio code) and create a new project:

cds init cap_test
cd cap_test
cds add samples
npm install
cds watch

The usual Capire entry page will be shown but when I click on Fiori Preview

It used to work some releases ago but is broken now.

Thanks

Matteo Prinetti

René
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I can reproduce it with:

Using Business Application Studio with @sap/cds-dk@4.9.2 it works.

christian.georgi can you check it too?

JakobFra
Participant
0 Kudos

Hi,

Is it possible that the problem is occurring again? We are currently experiencing the same issue, also rolling back to version 4.9.2 has no effect. Is there any additional configuration required to make it running on localhost?

Regards,
Jakob

Accepted Solutions (0)

Answers (2)

Answers (2)

René
Product and Topic Expert
Product and Topic Expert
0 Kudos

It was a temporary issue. It works today w/o problems. Not sure what was the root cause though.

matteoprinetti
Participant
0 Kudos

Hi Rene,

I tried today and still not working for me, maybe I have to upgrade cds-dk ? when clicking on "preview" I get now this in the browser

ModuleError: Failed to resolve dependencies of 'app/Component.js'
-> 'sap/fe/core/AppComponent.js'
-> 'sap/fe/core/AppStateHandler.js': failed to execute module factory for ''sap/fe/core/AppStateHandler.js'': U is not a function
at p1 (https://sapui5.hana.ondemand.com/resources/sap-ui-core.js:53:213)
at j1.failWith (https://sapui5.hana.ondemand.com/resources/sap-ui-core.js:40:43)
user: user $ cds -v
@sap/cds: 5.9.5
@sap/cds-compiler: 2.13.8
@sap/cds-dk: 4.8.2
@sap/cds-foss: 3.1.1
@sap/cds-mtx: -- missing --
@sap/eslint-plugin-cds: 2.3.5
Node.js: v14.17.6
home: /extbin/npm/globals/lib/node_modules/@sap/cds
user: user $ 
René
Product and Topic Expert
Product and Topic Expert
0 Kudos

I'm not really convinced that an upgrade of cds-dk will solve it, but of course it doesn't harm 😉
Have you tried with a new project according to your description? That's what I did yesterday. I got rid of the one I created Friday and started from scratch.

chgeo
Advisor
Advisor
0 Kudos

Please try with clearing your browser cache once.

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos
rene.jeglinsky
Issue is still occuring at incoginito mode also.

christian.georgi

chgeo
Advisor
Advisor
0 Kudos

The CORS issue looks fishy to me, I don't get this.
Check by calling https://sapui5.hana.ondemand.com/resources/sap/ushell/ui/horizon/NewDesignSwitchItem.js in the browser, there should be a response header "access-control-allow-origin: * "

matteoprinetti
Participant
0 Kudos

As of 13.05.2022 all is working again.

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi
Seems like there is issue for all users trying to see Fiori Preview from localhost...