on 2020 Aug 19 7:47 AM
Hi all expert,
I am creating project with sap business application studio with trial account. I just create a project via follow the template. But the projects i created always show me the error 'name sap could not be found'. It is for 'sap.ui.define' from component.js.
May u know how to fix it?
It is hard to estimate since the project structure is not available.
Is it Fiori devspace?
Is it a project for ABAP runtime or CF runtime?
In general:
1. The dependencies above is correct
2. npm install
3. Refresh App Studio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can find the project structure in my GitHub repository.
Yes it is a Fiori devspace and it is a CF runtime.
I tried npm install then SAP BAS refreshed but did not solve the error.
Do you have any suggestions?
Thank you.
a dummy change in tsconfig.json solved it
Hi jasonwangcn ,
Try to perform npm install for the project, ie (1) open a terminal [CTRL + ~]; (2) Verify that the terminal is opened in the specific project's directory (not the "projects" directory); (3) execute npm install".
Regards - Raz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please share the package.json and the template used for project creation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yuval,
Thank you for your reply.
I did not use any template, so I created all the files and wrote the code from scratch.
My package.json is the following:
{
"name": "sapui5app1",
"version": "0.0.1",
"devDependencies": {
"@sap/ui5-builder-webide-extension": "1.0.x",
"@ui5/cli": "2.2.6",
"eslint": "5.16.x",
"@sap/eslint-plugin-ui5-jsdocs": "2.0.x",
"@sapui5/ts-types": "1.71.x",
"bestzip": "2.1.4",
"rimraf": "3.0.2"
},
"ui5": {
"dependencies": [
"@sap/ui5-builder-webide-extension"
]
}
User | Count |
---|---|
71 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.