今天使用 sencha app build -testing 进行编译,然后运行的时候,出现错误
app.js?_dc=1666874035180:81578
Uncaught TypeError: t[1] is not a function
at app.js?_dc=1666874035180:81578:16
at app.js?_dc=1666874035180:81579:5
at app.js?_dc=1666874035180:79643:213
at app.js?_dc=1666874035180:79644:2
最后找到原因app.json 配置中引入了一个,jsencrypt.min.js文件,使用打包到app.js中, “includeInBundle”: true,导致,
{
"path": "resources/js/jsencrypt.min.js",
"includeInBundle": true
},
改后:
{
"path": "resources/js/jsencrypt.min.js",
"includeInBundle": false
},
但是使用sencha app build --production,进行最终编译的时候,还是会报错
jsencrypt.min.js?_dc=20221027204010:1
Uncaught TypeError: c[1] is not a function
at jsencrypt.min.js?_dc=20221027204010:1:107090
at jsencrypt.min.js?_dc=20221027204010:1:107112
at jsencrypt.min.j