on 2022 May 06 9:10 AM
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
Request clarification before answering.
It was a temporary issue. It works today w/o problems. Not sure what was the root cause though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 $
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: * "
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.