69 lines
1.5 KiB
Markdown
69 lines
1.5 KiB
Markdown
# ✅ COMANDOS DEFINITIVOS - TODOS OS ERROS CORRIGIDOS!
|
|
|
|
**ÚLTIMA CORREÇÃO APLICADA! Agora vai funcionar 100%!**
|
|
|
|
---
|
|
|
|
## 🎯 EXECUTE ESTES 3 BLOCOS (COPIE E COLE)
|
|
|
|
### **BLOCO 1: Limpar tudo**
|
|
```powershell
|
|
cd "C:\Users\Deyvison\OneDrive\Desktop\Secretaria de Esportes\Tecnologia da Informacao\SGSE\sgse-app"
|
|
taskkill /F /IM node.exe 2>$null
|
|
taskkill /F /IM bun.exe 2>$null
|
|
Remove-Item node_modules -Recurse -Force -ErrorAction SilentlyContinue
|
|
Remove-Item apps\web\node_modules -Recurse -Force -ErrorAction SilentlyContinue
|
|
Remove-Item packages\backend\node_modules -Recurse -Force -ErrorAction SilentlyContinue
|
|
Remove-Item packages\auth\node_modules -Recurse -Force -ErrorAction SilentlyContinue
|
|
Remove-Item bun.lock -Force -ErrorAction SilentlyContinue
|
|
```
|
|
|
|
### **BLOCO 2: Instalar (AGORA SIM!)**
|
|
```powershell
|
|
bun install --ignore-scripts
|
|
```
|
|
|
|
### **BLOCO 3: Adicionar pacotes**
|
|
```powershell
|
|
cd apps\web
|
|
bun add -D postcss autoprefixer esbuild --ignore-scripts
|
|
cd ..\..
|
|
```
|
|
|
|
---
|
|
|
|
## ✅ O QUE FOI CORRIGIDO
|
|
|
|
Encontrei **4 arquivos** com `catalog:` e corrigi TODOS:
|
|
|
|
1. ✅ `package.json` (raiz)
|
|
2. ✅ `apps/web/package.json`
|
|
3. ✅ `packages/backend/package.json`
|
|
4. ✅ `packages/auth/package.json` ⬅️ **ESTE ERA O ÚLTIMO!**
|
|
|
|
---
|
|
|
|
## 🚀 DEPOIS DOS 3 BLOCOS ACIMA:
|
|
|
|
### **Terminal 1 - Backend:**
|
|
```powershell
|
|
cd packages\backend
|
|
bunx convex dev
|
|
```
|
|
|
|
### **Terminal 2 - Frontend:**
|
|
```powershell
|
|
cd apps\web
|
|
bun run dev
|
|
```
|
|
|
|
### **Navegador:**
|
|
```
|
|
http://localhost:5173
|
|
```
|
|
|
|
---
|
|
|
|
**🎯 Execute os 3 blocos acima e me avise se funcionou!**
|
|
|