extjs7 引入官方本地化包,解决npm build失败
版本
7.4.0
安装
npm install @sencha/ext-classic-locale@7.4.0
npm install @sencha/ext-modern-locale@7.4.0
导入PACKAGE
根据官方文档,修改app.json
"requires": [
"ext-locale"
],
"locale": "es",
问题
执行 npm start,npm testing正常,执行npm build报错如下
i [ext]: [ERR] Cannot satisfy requirements for “ext-locale”!
解决
修改app.json如下即可
```json
"requires": [
"locale"
],
"locale": "es",