尽管我在索引页面中包含了 ext-all.js
文件;当我尝试 this online Guage chart example provided by Sencha 时出现如下错误
http://myapp.com/widget/polar.js?_dc=1436970370848 404 (Not Found)
Uncaught Error: [Ext.create] Unrecognized class name / alias: widget.polar
最佳答案
图表在一个单独的包中:
Sencha Charts are not included in the Ext JS library by default. In order to include the charts package, simply add “charts” (“sencha-charts” if working with Ext JS 5.x) to the requires block in your Sencha Cmd generated application’s {appRoot}/app.json file. Adding a package name to the requires array directs Cmd to make the package available to your application.
https://docs.sencha.com/extjs/5.1/components/introduction_to_charting.html
关于javascript - Ext JS 6 - 尽管包含 ext-all.js 但未找到图表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31433325/