1 回答

TA貢獻(xiàn)1780條經(jīng)驗(yàn) 獲得超1個(gè)贊
E9 和 IE10。原因是 ocs 實(shí)例創(chuàng)建失敗,因?yàn)闆](méi)有調(diào)用父類的構(gòu)造函數(shù)。
在github上找到解決方案:super() not calling parent's constructor on IE9
實(shí)踐之后:
{
"plugins": [
["transform-es2015-classes", {"loose": true}],
"transform-proto-to-assign",
"transform-decorators-legacy"
],
"presets": [
"es2015",
"react",
"stage-0"
]
}
又碰到了下面的問(wèn)題。
ERROR in ./js/kill/order/index.js
Module build failed: SyntaxError: C:/Users/Administrator/Desktop/ydh-qiang-web/src/main/webapp/pc/js/kill/order/index.js: Missing class properties transform.
23 | }
24 |
> 25 | state = {
| ^
26 | loading: false,
- 1 回答
- 0 關(guān)注
- 781 瀏覽
添加回答
舉報(bào)