简体   繁体   中英

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

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. A fix has now been released with version 6.5.1 and it solved the issue for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM