加载规则';jsx-a11y/alt-Text';时出错:rule.create不是函数 [英] Error while loading rule 'jsx-a11y/alt-text': rule.create is not a function
本文介绍了加载规则';jsx-a11y/alt-Text';时出错:rule.create不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚用了
npx create-react-app my-app
启动一个项目并在运行npm start
时
我收到此编译错误
Error while loading rule 'jsx-a11y/alt-text': rule.create is not a function
Occurred while linting my-app/src/index.js
推荐答案
您可能在npm上标记为最新的6.5.0版本时遇到了导致此问题的https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/824。版本6.5.1现已发布修复程序,并为我解决了此问题。
这篇关于加载规则';jsx-a11y/alt-Text';时出错:rule.create不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文