Error while loading rule #39;jsx-a11y/alt-text#39;: rule.create is not a function(加载规则#39;jsx-a11y/alt-Text#39;时出错: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不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!