Skip to content

Failed to resolve module specifier "react/jsx-runtime" #16401

@Digital39999

Description

@Digital39999

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.6

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions