[英]Error while loading rule 'jsx-a11y/alt-text': rule.create is not a function
I've just used npx create-react-app my-app
to start one project and when running npm start
i'm receiving this compiling error我刚刚使用
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
You've probably hithttps://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/824 where Version 6.5.0 was causing this issue while it was marked as latest on npm.您可能已经点击了https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/824 ,其中 6.5.0 版导致了这个问题,而它在 npm 上被标记为最新版本。 A fix has now been released with version 6.5.1 and it solved the issue for me.
现在已经发布了 6.5.1 版的修复程序,它为我解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.