React 解决this.getOptions is not a function 报错

react

因为less-loader的版本过高

"devDependencies": {

"css-loader": "^4.3.0",

"less": "^4.1.1",

"less-loader": "^10.0.0",

"style-loader": "^1.3.0"

}

改为:

"devDependencies": {

...

"less-loader": "^6.0.0"

}

重新npm install

重启 

以上是 React 解决this.getOptions is not a function 报错 的全部内容, 来源链接: utcz.com/z/383737.html

回到顶部