You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a crash while linting after updating to version 0.4.14.
TypeError: Error while loading rule 'react-refresh/only-export-components': Cannot read properties of undefined (reading 'includes')
Occurred while linting /Users/bobd/mf-react-track-and-trace/lib/index.ts
at Object.create (/Users/bobd/mf-react-track-and-trace/node_modules/eslint-plugin-react-refresh/index.js:63:18)
at createRuleListeners (/Users/bobd/mf-react-track-and-trace/node_modules/eslint/lib/linter/linter.js:765:21)
If I look at where this comes from I see it is this includes on filename:
Oh yeah this changed bumped the implicit required peer version for ESLint to v8.40. This was not expected. If you bump ESLint to at least 8.40 it should be ok. I will update the code to be more backward compatible in the next release
Hello,
I noticed a crash while linting after updating to version 0.4.14.
TypeError: Error while loading rule 'react-refresh/only-export-components': Cannot read properties of undefined (reading 'includes')
Occurred while linting /Users/bobd/mf-react-track-and-trace/lib/index.ts
at Object.create (/Users/bobd/mf-react-track-and-trace/node_modules/eslint-plugin-react-refresh/index.js:63:18)
at createRuleListeners (/Users/bobd/mf-react-track-and-trace/node_modules/eslint/lib/linter/linter.js:765:21)
If I look at where this comes from I see it is this includes on filename:
I see that has been changed in this merge request:
https://github.com/ArnaudBarre/eslint-plugin-react-refresh/pull/54/files
Is this a bug on your end or are we doing something wrong configuration wise, with version 0.4.13 there are no issues.
The text was updated successfully, but these errors were encountered: