cancel
Showing results for 
Search instead for 
Did you mean: 

name sap could not be found during create project from fiori template

jasonwangcn
Participant
0 Kudos
894

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?

0 Kudos

Hello.

This seems to be an eslint issue, not a TypeScript Signatures issue.

I believe a relevant `globals` section need to be configured in the eslint config.

- https://eslint.org/docs/user-guide/configuring#specifying-globals

Cheers.

Shahar.

View Entire Topic
yuval_morad
Advisor
Advisor

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

maissa93
Participant
0 Kudos

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.

yuval_morad
Advisor
Advisor

a dummy change in tsconfig.json solved it

maissa93
Participant
0 Kudos

I run another time the command npm i and did the dummy change and then both of the errors are gone now!
thanks a lot for your help.