TypeError: Cannot read properties of undefined ('configs') when importing eslint-plugin-react-compiler · Issue #376 · unjs/jiti · GitHub
More Web Proxy on the site http://driver.im/
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've encountered a TypeError when trying to access the configs property of eslint-plugin-react-compiler when running a simple script with jiti. The same code works without issue when executed with Node.js.
Reproduction
Create a file named index.ts.
Populate index.ts with the following code:
import reactCompiler from "eslint-plugin-react-compiler"
console.log(reactCompiler.configs.recommended)
Run the script using jiti:
npx jiti ./index.ts
Expected Behavior
The script should successfully import eslint-plugin-react-compiler and log the recommended configuration object to the console, similar to how it behaves when run with Node.js.
Actual Behavior
Running the script with jiti results in the following error:
TypeError: Cannot read properties of undefined (reading 'configs')
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Environment
jiti version: 2.4.2
eslint-plugin-react-compiler version:19.1.0-rc.1
Describe the bug
I've encountered a TypeError when trying to access the configs property of eslint-plugin-react-compiler when running a simple script with jiti. The same code works without issue when executed with Node.js.
Reproduction
index.ts
.index.ts
with the following code:Expected Behavior
The script should successfully import eslint-plugin-react-compiler and log the recommended configuration object to the console, similar to how it behaves when run with Node.js.
Actual Behavior
Running the script with jiti results in the following error:
The text was updated successfully, but these errors were encountered: