Skip to Content
1
Jun 09 at 03:38 AM

unknown destination for local run ui5 project

195 Views

Thanks for your interesting explanation of the configuration for locally run the frontend service.

But I refer to your explanation get error when I npm start my project:

Error Message:
xs-app.json/routes/0: Format validation failed (Route references unknown destination "explorer")

I create a easy-ui5 project Application Router @ Cloud Foundry

in approuter folder:

xs-app.json

{
  "welcomeFile": "uimodule/index.html",
  "authenticationMethod": "none",
  "logout": {
    "logoutEndpoint": "/do/logout"
  },
  "routes": [
    {
      "source": "^/uimodule/(.*)$",
      "target": "$1",
      "authenticationType": "none",
      "localDir": "uimodule/webapp"
    },
	{
      "source": "^/designtime(.*)$",
      "target": "$1",
      "destination": "explorer",
      "authenticationType": "xsuaa"
    }
  ]
}

default-env.json

{
  "destinations": [
    {
      "name": "explorer",
      "url": "http://localhost:8080",
      "forwardAuthToken": true
    },
	{
	  "name": "ui5lib",
      "url": "https://sapui5.hana.ondemand.com/1.71.0/",
      "forwardAuthToken": true,
      "strictSSL": false
    }
	]
}

I and my colleague can't figure out how the error happen, but when I npm start, it shows:

Error Message:
xs-app.json/routes/0: Format validation failed (Route references unknown destination "explorer")