Eclipse-错误集

本文详细解析了在前端开发中遇到的The origin server did not find a current representation for the target resource错误,并提供了检查manifest.json文件、确保rootView设置正确、验证App标签ID与manifest.json中controlId一致性的解决方案,最后强调了初始化路由器的重要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.The origin server did not find a current representation for the target resource or is not willing to

ttps://blog.csdn.net/dbc_121/article/details/79204340

 

2.Uncaught TypeError: Cannot read property 'setHash' of undefined

In my case the solution was:

  1. Check your manifest.json
  2. Check what view is assigned there as root view under "sap.ui5": { "rootView":
  3. Go to the view XML of that view (I was using XML views)
  4. Check if that contains an App tag, and if the tag has an ID like <App id="app">
  5. Go back to the manifest.json, and check the router configuration, controllId should point to the same id: "routing": { "config": { "controlId": "app",
  6. Finally, from the Component.js had to initialize the router this.getRouter().initialize();

Then sap.ui.core.UIComponent.getRouterFor(this).navTo(... worked fine.

Hope that helps.

转载于:https://www.cnblogs.com/ricoo/p/11157791.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值