首页 > 解决方案 > Sencha Charts 是否从 ExtJS 7.0 Classic GPL 中删除?

问题描述

我通过成功安装了 ExtJS 7.0 GPL,npm但它未能包含 app.json 中引用的图表组件,如下所示。

"requires": [
   "charts"
]

我运行时遇到的错误nmp start如下。

    i [ext]: ext-webpack-plugin v7.0.0, Ext JS v7.0.0 Commercial Edition, Sencha Cmd v7.0.0.40, webpack v4.39.3n/a
    i [ext]: Starting development build for extjs
    i 「wds」: Project is running at http://0.0.0.0:1962/
    i 「wds」: webpack output is served from /
    i 「wds」: Content not from webpack is served from ./
    i 「wds」: 404s will fallback to /index.html
    i [ext]: Processing Build Descriptor : classic (development environment)
    i [ext]: [ERR] Cannot satisfy requirements for "charts"! [ERR]    The following versions cannot be satisfied: [ERR]       Monitor: charts (No matches!)
    i [ext]: [ERR] Cannot resolve package requirements
    i [ext]: [ERR]
    i [ext]: [ERR] The application was last modified by an older version of Sencha Cmd (7.2.0.84). [ERR] Installing a newer Sencha Cmd version may resolve the error described above. [ERR]
    ******************************************
    i [ext]: Cannot satisfy requirements for "charts"! [ERR]    The following versions cannot be satisfied: [ERR]       Monitor: charts (No matches!)
    ******************************************

全新安装和升级也会发生同样的错误。

这是许可证问题还是我遗漏了什么app.json

标签: npmextjssencha-cmd

解决方案


仔细检查 node_modules/@sencha 目录下是否存在 ext-charts 目录。

如果没有,您将需要安装该模块

npm install @sencha/ext-charts@7.0.0

推荐阅读