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
{{ message }}
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
On a React project, I switched ts-jest + babel-jest to @swc/jest
Few tests are now failing with the same type of error : Cannot access 'aVariable' before initialization which always happen in a specific situation.
The error is thrown when the variable is defined further in the component, but used before by a React function :
The text was updated successfully, but these errors were encountered:
alexis-regnaud
changed the title
Cannot access 'aVariable' before initialization
"Cannot access 'aVariable' before initialization" with React
May 17, 2022
On a React project, I switched
ts-jest
+babel-jest
to@swc/jest
Few tests are now failing with the same type of error :
Cannot access 'aVariable' before initialization
which always happen in a specific situation.The error is thrown when the variable is defined further in the component, but used before by a React function :
The text was updated successfully, but these errors were encountered: