Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler Error with "jsx": "react-jsx"" in tsconfig: could not resolve jsx-dev-runtime #4227

Open
daniel-le97 opened this issue Aug 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@daniel-le97
Copy link

What version of Bun is running?

0.7.4

What platform is your computer?

Darwin 22.5.0 arm64 arm

What steps can reproduce the bug?

changing jsx in tsconfig.json compilerOptions to "jsx": "react-jsx".
`{
"compilerOptions": {
// ...compilerOptions,
"jsx": "react-jsx",
"jsxImportSource": "nano-jsx/esm" //example library if set

},
// ...tsconfigOptions
}`

What is the expected behavior?

no errors, it should be looking for '{library | react}/jsx-runtime'

What do you see instead?

error: Could not resolve: "nano-jsx/esm/jsx-dev-runtime". Maybe you need to "bun install"?

Additional information

No response

@daniel-le97 daniel-le97 added the bug Something isn't working label Aug 20, 2023
@ionutvelicu
Copy link

Same issue on monterey 12.6.8 using bun 0.8.1 regardless of the jsx config in tsconfig.json.

@mnpenner
Copy link

mnpenner commented Nov 9, 2023

Sounds like the same issue as #3768

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants