Closed rhuangabrielsantos closed 2 years ago
I fixed this problem, changed the vite to react-scripts
I'm curious why it doesn't work in Vite?
hey bro ,I fixed this problem too ,but I did not change vite to react-scripts , here is my package.json: "devDependencies": { "@types/react": "^18.2.15", "@types/react-dom": "^18.2.7", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "@vitejs/plugin-react": "^4.0.3", "eslint": "^8.45.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.3", "typescript": "^5.0.2", "vite": "^4.4.5" }
My Code:
On localhost it works
In production it doesn't work, error message:
full code: https://github.com/rhuangabrielsantos/dots-game production: https://dots-game.vercel.app/
I use vite with reactjs
Help me :(