cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 working in SAP web IDE vs VScode

bigeye06
Explorer
0 Kudos
481

Hi all,

I am fairly new to UI5. I created a project from a template in WebIDE, It was working fine. Then I open the same project in VScode and run it, there was an error stating that "Uncaught ReferenceError: sap is not defined".

So, what is the issue here? is coding in WebIDE vs VScode differ differently?

View Entire Topic
IanQuigley
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi there,

Can you please confirm that you have the SAP Fiori tools extension pack installed in VSCode? Once this is installed, please restart VSCode. As long as your project is in your workspace folder, the SAP Fiori tools should detect it and prompt you to migrate it to support VSCode. Please see https://help.sap.com/docs/SAP_FIORI_tools/17d50220bcd848aa854c9c182d65b699/70d41f3ee29d453a90efab3ce0... for full details.

Regards,

Ian

bigeye06
Explorer
0 Kudos

Hello,


Yes, SAP Fiori tools extension pack is installed in VSCode. I followed this blog post to set up VSCode UI5 development.

IanQuigley
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks. And did your WebIDE project migrate successfully? Can you provide more details on what actions you have performed please? Did you run "npm start" on the project after successfully migrating and see this issue?

Regards,

Ian