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

Failed to resolve entry for package "@vitejs/plugin-react". #340

Closed
7 tasks done
wanghaisheng opened this issue Jun 23, 2024 · 1 comment
Closed
7 tasks done

Failed to resolve entry for package "@vitejs/plugin-react". #340

wanghaisheng opened this issue Jun 23, 2024 · 1 comment

Comments

@wanghaisheng
Copy link

Describe the bug

Failed to resolve entry for package "@vitejs/plugin-react".

conf.ts

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': 'http://localhost:8080',
'/images': 'http://localhost:8080',
},
},
});

Reproduction

https://github.com/jnsangalang/ad-astral-express/tree/main/client

Steps to reproduce

this my first time try to compile and run a vite repo

System Info

System:
    OS: Linux 5.10 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 6.99 GB / 7.45 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.15.0 - /usr/bin/node
    npm: 10.7.0 - /usr/bin/npm
    pnpm: 9.4.0 - /usr/bin/pnpm
  npmPackages:
    @vitejs/plugin-react: ^4.3.1 => 4.3.1 System:
    OS: Linux 5.10 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 6.99 GB / 7.45 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.15.0 - /usr/bin/node
    npm: 10.7.0 - /usr/bin/npm
    pnpm: 9.4.0 - /usr/bin/pnpm
  npmPackages:
    @vitejs/plugin-react: ^4.3.1 => 4.3.1

Used Package Manager

npm

Logs

No response

Validations

@hi-ogawa
Copy link
Collaborator

The issue is probably specific to the repo, so you need to check with the author there about their specific setup.

@hi-ogawa hi-ogawa closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants