Skip to Content

custom control relative path error

Hi Experts,

I am trying to include a custom control in my ui5 app in WEBIDE.

I am getting makeNestedError due to incorrect relative path.

UI5 App - sapCustomControlTest

Control Folder - declare

Please find my folder structure image :

i am using following code in component.js init() :

var currentPath ="com.sapCustomControlTest");"declare.ui",currentPath+"./../../declare/ui");

Then i am trying to use in my main.view.xml located under view folder as follows :

<mvc:View controllerName="com.sapCustomControlTest.controller.main" xmlns:html="" xmlns:mvc="sap.ui.core.mvc"
	displayBlock="true" xmlns="sap.m"
			<Page title="{i18n>title}">

I am getting following error in console:

kindly suggest.

Best regards,

Ankit Agarwal

d1.png (8.0 kB)
d2.png (16.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers