-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Failed to resolve module specifier "react/jsx-runtime" #16401
Copy link
Copy link
Closed
Labels
Description
Describe the bug
I am aware that this is older issue and I just can't resolve it, I sow this comment and I would really appreciate explanation on how to because i don't use that module at all anywhere..
This is expected behavior, because you external some library, you should load it by yourself.
Originally posted by @underfin in #3876 (comment)
Reproduction
https://stackblitz.com/~/github.com/Digital39999/remix-vite-test
Steps to reproduce
Run pnpm install, pnpm build and pnpm start.
Then check active ports and open the website, make sure to open it in a new tab.
When you are on the page, right click and inspect, and check the console. Error from title should appear (on every refresh).
System Info
System:
OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (4) x64 Intel(R) N100
Memory: 7.49 GB / 11.43 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 20.12.1 - ~/.nvm/versions/node/v20.12.1/bin/node
npm: 10.5.1 - ~/.nvm/versions/node/v20.12.1/bin/npm
pnpm: 8.15.6 - ~/.nvm/versions/node/v20.12.1/bin/pnpm
npmPackages:
@vitejs/plugin-react: ^4.2.1 => 4.2.1
vite: ^5.2.6 => 5.2.6Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable