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
In a pnpm environment using ESLint's Flat Config with a React setup, I encounter an assertion failure in fseventswhen running ESLint multiple times with the --cache option. This occurs specifically when using both @pandacss/eslint-plugin and eslint-plugin-jsx-a11y together.
Importing Without Configuration (Error Occurs Without Cache):
// The error occurs just by importing without setting up the plugin.// eslint-disable-next-line @typescript-eslint/no-unused-varsimportpandaPluginfrom"@pandacss/eslint-plugin";exportconstpandaConfigs=[];
The issue seems related to the interaction between @pandacss/eslint-plugin, eslint-plugin-jsx-a11y, and ESLint's caching mechanism.
Removing either plugin or disabling cache prevents the error from occurring.
The error points to an assertion failure in fsevents, specifically in fsevents.c at line 87.
Behavior:
Expected:
ESLint should run without errors when both plugins are used together, regardless of the cache option.
Actual:
ESLint aborts with an assertion failure in fsevents when both plugins are used together with the cache option enabled.
Request:
Assistance in identifying the cause of this issue and a potential fix or workaround.
The text was updated successfully, but these errors were encountered:
taichi221228
changed the title
Assertion Failure in fsevents When Using @pandacss/eslint-plugin with eslint-plugin-jsx-a11y and ESLint Cache
Assertion Failure in fsevents When Using @pandacss/eslint-plugin with eslint-plugin-jsx-a11y and ESLint Cache
Oct 24, 2024
Environment:
22.3.0
9.12.1
^9.13.0
eslint-plugin-react
:^7.37.2
eslint-plugin-jsx-a11y
:^6.10.1
@pandacss/eslint-plugin
:^0.2.0
Description:
In a pnpm environment using ESLint's Flat Config with a React setup, I encounter an assertion failure in
fsevents
when running ESLint multiple times with the--cache
option. This occurs specifically when using both@pandacss/eslint-plugin
andeslint-plugin-jsx-a11y
together.Error Message:
Observations:
@pandacss/eslint-plugin
is configured, the error only occurs with the--cache
option.@pandacss/eslint-plugin
without configuring it causes the error, even without the--cache
option.Steps to Reproduce:
Configure ESLint with
@pandacss/eslint-plugin
:Run ESLint without cache (No Error):
eslint . /path/to/src/App.tsx 8:7 warning Unnecessary debug utility @pandacss/no-debug ✖ 1 problem (0 errors, 1 warning)
Run ESLint with cache (Error Occurs):
Importing Without Configuration (Error Occurs Without Cache):
Minimal Reproducible Environment
A repository demonstrating the issue can be found here: panda-eslint-plugin-bug
Additional Information:
@pandacss/eslint-plugin
,eslint-plugin-jsx-a11y
, and ESLint's caching mechanism.fsevents
, specifically infsevents.c
at line 87.Behavior:
Expected:
Actual:
fsevents
when both plugins are used together with the cache option enabled.Request:
The text was updated successfully, but these errors were encountered: