Extjs报错 Uncaught TypeError: c is not a constructor

initializing Content Script message listener
ext-all.js:21 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
loadScriptFile @ ext-all.js:21
require @ ext-all.js:21
syncRequire @ ext-all.js:21
(anonymous) @ ext-all.js:21
instantiate @ ext-all.js:21
(anonymous) @ ext-all.js:21
newReport @ sysReport.js?dt=1528684071:496
fireHandler @ ext-all.js:21
onClick @ ext-all.js:21
(anonymous) @ VM1061:6
m @ ext-all.js:21
VM964:3 Uncaught TypeError: c is not a constructor
    at eval (eval at getInstantiator (ext-all.js:21), <anonymous>:3:8)
    at Object.instantiate (ext-all.js:21)
    at Object.create (ext-all.js:21)
    at j.newReport (sysReport.js?dt=1528684071:496)
    at A.fireHandler (ext-all.js:21)
    at A.onClick (ext-all.js:21)
    at HTMLAnchorElement.eval (eval at cacheableFunctionFactory (ext-all.js:21), <anonymous>:6:13)
    at HTMLAnchorElement.m (ext-all.js:21)

同样的代码,在windows下没问题,为啥到正式环境就不行呢? 正式环境是Ubuntu的

从报错代码中查找,点击 下图中红框那行


跳到这里,难道是找不到这个类对应的文件? 


看一下文件名,果然是有一个字母的大小写搞错了,所以在windows下没问题,linux下就找不到了。



猜你喜欢

转载自blog.csdn.net/wuzuyu365/article/details/80648397
今日推荐