TypeError: c is not a constructor Exception is thrown during inherit from Rally.example.BareMetalChart and Rally.ui.chart.Chart classes
TypeError: c is not a constructor Exception is thrown during inherit from Rally.example.BareMetalChart and Rally.ui.chart.Chart classes
我正在尝试使用 rallydev 示例构建图表,但不幸的是,TypeError: c is not a constructor Exception is thrown:
Error: success callback for Deferred transformed result of Deferred transformed result of Deferred threw: TypeError: c is not a constructor
at eval (eval at getInstantiator (sdk-debug.js:5720), <anonymous>:3:8)
at Object.instantiate (sdk-debug.js:5692)
at Object.create (sdk-debug.js:2303)
at constructor._createApp (sdk-debug.js:225510)
at constructor._launchAppInViewport (sdk-debug.js:225417)
at sdk-debug.js:225374
at constructor._loadTimeboxScope (sdk-debug.js:225505)
at sdk-debug.js:225373
at constructor.<anonymous> (sdk-debug.js:225280)
at constructor.<anonymous> (sdk-debug.js:10091)
但是,它仅发生在从 Rally.example.BareMetalChart
和 Rally.ui.chart.Chart
class 继承期间。
如果我从 Rally.example.StandardReport
class.
继承,一切都会按预期工作
如果有人遇到同样的问题并解决了它,我将不胜感激。
提前致谢!
嗯,我刚刚测试了它,它对我有用...你在这里使用的是 2.1 示例吗? https://help.rallydev.com/apps/2.1/doc/#!/example/bare-metal-chart
这个错误听起来像是找不到您的应用 class。这通常是由于您的 js 文件和 config.json 文件不匹配造成的。您在使用 Rally App Builder 吗?通常所需要做的就是确保 App.js 中定义的 class 与 config.json 文件中指定的 class 名称相匹配,并确保包含 App.js在javascripts部分。然后重建,你应该可以开始了。
或者,如果您只是直接处理示例中的 html 文件,您是否更改了那里的 class 名称?只需确保使用 Ext.define 创建的 class 然后被底部的 Rally.launchApp 调用引用,您就可以开始了。
我正在尝试使用 rallydev 示例构建图表,但不幸的是,TypeError: c is not a constructor Exception is thrown:
Error: success callback for Deferred transformed result of Deferred transformed result of Deferred threw: TypeError: c is not a constructor
at eval (eval at getInstantiator (sdk-debug.js:5720), <anonymous>:3:8)
at Object.instantiate (sdk-debug.js:5692)
at Object.create (sdk-debug.js:2303)
at constructor._createApp (sdk-debug.js:225510)
at constructor._launchAppInViewport (sdk-debug.js:225417)
at sdk-debug.js:225374
at constructor._loadTimeboxScope (sdk-debug.js:225505)
at sdk-debug.js:225373
at constructor.<anonymous> (sdk-debug.js:225280)
at constructor.<anonymous> (sdk-debug.js:10091)
但是,它仅发生在从 Rally.example.BareMetalChart
和 Rally.ui.chart.Chart
class 继承期间。
如果我从 Rally.example.StandardReport
class.
如果有人遇到同样的问题并解决了它,我将不胜感激。
提前致谢!
嗯,我刚刚测试了它,它对我有用...你在这里使用的是 2.1 示例吗? https://help.rallydev.com/apps/2.1/doc/#!/example/bare-metal-chart
这个错误听起来像是找不到您的应用 class。这通常是由于您的 js 文件和 config.json 文件不匹配造成的。您在使用 Rally App Builder 吗?通常所需要做的就是确保 App.js 中定义的 class 与 config.json 文件中指定的 class 名称相匹配,并确保包含 App.js在javascripts部分。然后重建,你应该可以开始了。
或者,如果您只是直接处理示例中的 html 文件,您是否更改了那里的 class 名称?只需确保使用 Ext.define 创建的 class 然后被底部的 Rally.launchApp 调用引用,您就可以开始了。