[英]Error while loading rule 'jsx-a11y/alt-text': rule.create is not a function
我剛剛使用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
您可能已經點擊了https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/824 ,其中 6.5.0 版導致了這個問題,而它在 npm 上被標記為最新版本。 現在已經發布了 6.5.1 版的修復程序,它為我解決了這個問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.