IBM Worklight 6.0 - 如何解决javascript地图文件的404错误? [英] IBM Worklight 6.0 - How to resolve 404 errors for javascript map files?

查看:112
本文介绍了IBM Worklight 6.0 - 如何解决javascript地图文件的404错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更新工作灯应用程序,以使用由WL6创建的dojolib,而不是由项目提供的dojo的烘焙版本。我udpated build-dojo.xml文件从dojoLib而不是旧版本复制文件,我已经能够从更新的版本解决附加的依赖问题。我仍然看到一些404错误与一些JavaScript地图文件相关联。我试图复制旧版本的dojo的地图文件,但没有运气解决这个404。好奇,如果这是一个缺陷,或者有一个容易的解决方法。

I'm trying to update a worklight application to use the dojolib created by WL6 instead of a baked-in version of dojo supplied by the project. I've udpated the build-dojo.xml file to copy files from the dojoLib instead of an older version, and I've been able to resolve the additional dependency issues from the updated version. I'm still seeing a few 404 errors associated with some javascript map files. I tried to copy the map files from the older version of dojo, but no luck in resolving this 404. Curious if this is a defect or if there is an easy workaround.

这是chrome开发控制台中的错误:

Here's the error in the chrome dev console:

GET http:// localhost:10080 / BPMWorklight / apps / services / preview / BPMApp / iphone / 1.0 / default / dojo / core-web-layer.js.map 404(未找到):10080 / BPMWorklight / apps / services / preview / BPMApp / iphone / 1.0 / default / dojo / core-web-layer.js .map:1

GET http:// localhost:10080 / BPMWorklight / apps / services / preview / BPMApp /iphone/1.0/default/dojo/mobile-ui-layer.js.map 404(未找到):10080 / BPMWorklight / apps / services / preview / BPMApp / iphone / 1.0 / default / dojo / mobile-ui-layer。 js.map:1

推荐答案

简而言之,您可以忽略该消息。

In the short - you can ignore that messages.

如果你真的要删除它 - 有两个选择:

If you really want to remove it - there is two options:


  1. 让他们工作。实际上,为此,您需要确保实际加载此文件。如果你有404 - 这意味着你没有他们在那里,你把它们放在错误的地方,错误的名称,服务器配置错误等等。首先 - 你需要同一版本的dojo的地图文件(在其他情况下,他们是无意义的),第二个 - 你需要找出为什么你不能加载它们。他们应该作为一个常规文件访问 - 没有技巧。
  1. Make them work. Actually, for this you need to ensure that you can actually load this files. If you have 404 - it means you haven't them there, you have put them to wrong place, wrong name, server is misconfigured, etc. First of all - you need map files from the same version of dojo (in other case they are meaningless), and the second - you need to find out why you cant load them. They should be accessible as a regular files - no tricks.

从Dojo库中删除对映射文件的引用。在这种情况下,您需要查找所有js,并找到并删除字符串,如'// @ sourceMappingURL = ...'

Remove the reference to map files from dojo library. In that case you need to get over all the js and find and remove string like '//@ sourceMappingURL=...'

这篇关于IBM Worklight 6.0 - 如何解决javascript地图文件的404错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆