简体   繁体   English

如何查找错误的包含文件的来源

[英]How to find source of faulty included file

Sencha Touch will complain about files it can't find a lot. Sencha Touch会抱怨找不到太多文件。 Usually you just include the file. 通常,您只包含文件。 But sometimes the problem is a faulty include. 但是有时候问题是一个错误的包含。 So then you need to find where the file is being requested. 因此,您需要查找文件的请求位置。 Since it won't tell you where the require is located, that can be a problem. 由于它不会告诉您需求位于何处,因此可能会出现问题。

Currently I have another such file. 目前,我还有另一个这样的文件。 Tried something, it didn't work, now I want the files out of my project. 尝试了一下,但是没有用,现在我想将文件从项目中删除。 But somehow Sencha Touch keeps looking for it. 但是不知何故,Sencha Touch一直在寻找它。 I've tried: 我试过了:

  • Find specifically in the locations it was included 在包含它的位置中专门查找
  • Find in bootstrap.js 在bootstrap.js中查找
  • Find All for the file name 查找所有文件名
  • Rebuild of the project with Sencha CMD (complains about the same problem) 使用Sencha CMD重建项目(抱怨相同的问题)
  • Empty cache and hard reload in Chrome 在Chrome中清空缓存并重新加载
  • Other browsers, they crash even worse 其他浏览器,崩溃甚至更糟

Anyone have a trick to find remaining requires in Sencha Touch? 任何人都有技巧在Sencha Touch中找到剩余需求吗?

Look for the file name without the extension. 查找不带扩展名的文件名。 As most requires don't have the file extension in them (including this one) I was not finding anything based on a search that included the extension... 由于大多数需求都没有文件扩展名(包括此文件扩展名),因此我没有基于包含扩展名的搜索找到任何东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM