簡體   English   中英

加載規則“jsx-a11y/alt-text”時出錯:rule.create 不是函數

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM