Open Penguinehis opened 2 years ago
Hey @Penguinehis, can you show me which commands you ran for compiling the app? (The error you showed above seems to be something related to a missing package that the api needs. In the Dockerfile you are able to see how I make the production build).
Got the same errors as @Penguinehis.
Local build didn't work at all, but the Docker Container Build worked like a charm. I suggest using an Alpine based Node image, its a size comparison between ~1.5GB to 300MB.
The API can be build like @guilhermebkel did it. The client side is a bit tricky. This can be locally build inside the /package/unoenty folder with npm build
. But be aware, that you need to edit the .env
file to your needs!
Failed to compile.
./src/services/socket.ts Module not found: Can't resolve '@uno-game/error-handler' in '/root/uno-game/packages/unoenty/src/services'
I tryed everything to fix