appwrite / appwrite/starter-for-react

🐛 Bug Report:

Aperta
#5 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
JavaScript
Stelle
8
Fork
44
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 👟 Reproduction steps

npm run dev

### 👍 Expected behavior

[ASUS: starter-for-react]$ npm run dev

> react-starter-kit-for-appwrite@0.0.0 dev
> vite

VITE v6.3.5 ready in 471 ms

➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help

Image

### 👎 Actual Behavior

Assets in public directory cannot be imported from JavaScript.
If you intend to import that asset, put the file in the src directory, and use /src/appwrite.svg instead of /public/appwrite.svg.
If you intend to use the URL of that asset, use /appwrite.svg?url.
Assets in public directory cannot be imported from JavaScript.
If you intend to import that asset, put the file in the src directory, and use /src/react.svg instead of /public/react.svg.
If you intend to use the URL of that asset, use /react.svg?url.
Files in the public directory are served at the root path.
Instead of /public/react.svg, use /react.svg.

Image

### 🎲 Appwrite version

Appwrite Cloud

### 💻 Operating system

Windows

### 🧱 Your Environment

17.0.0

### 👀 Have you spent some time to check if this issue has been raised before?

- [x] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [x] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia eseguendo `npm run dev` e ispeziona gli import dello starter di `public/appwrite.svg` e `public/react.svg`, usando l’output degli errori di Vite come guida. Il lavoro è completato quando il server di sviluppo si avvia senza errori di importazione dalla directory public e gli asset referenziati continuano a essere caricati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, react, vite
Ambito
build-system, frontend
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.