wight-airmash / ab-server

2d multiplayer action game server for Node.js based on WebSocket communication.
https://airmash.online
MIT License
54 stars 21 forks source link

Can't build on Ubuntu #124

Closed ArtemBernatskyy closed 3 years ago

ArtemBernatskyy commented 3 years ago

Somehow I can build on MacOS (NodeJS 14) but can't build on Linux (Ubuntu 20.04, NodeJS tried 14 and 12)

Steps to reproduce:

npm i
cp .env.example .env
npm run build:dev

Here is error log



> @airbattle/server@6.5.2 build:dev /root/airmash/backend
> tsc

src/config/config.ts:3:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

3 import { FLAGS_ISO_TO_CODE, GAME_TYPES } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/constants/ctf.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/constants/powerups.ts:1:39 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES, MOB_TYPES } from '@airbattle/protocol';
                                        ~~~~~~~~~~~~~~~~~~~~~

src/constants/projectiles.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_TYPES } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/constants/ships.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_TYPES } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/constants/spawn.ts:1:28 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES } from '@airbattle/protocol';
                             ~~~~~~~~~~~~~~~~~~~~~

src/constants/upgrades.ts:1:28 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES } from '@airbattle/protocol';
                             ~~~~~~~~~~~~~~~~~~~~~

src/core/bootstrap.ts:1:28 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES } from '@airbattle/protocol';
                             ~~~~~~~~~~~~~~~~~~~~~

src/endpoints/ws.ts:2:54 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

2 import { marshalServerMessage, ProtocolPacket } from '@airbattle/protocol';
                                                       ~~~~~~~~~~~~~~~~~~~~~

src/modes/btr/commands/respawn.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/modes/btr/maintenance/matches.ts:1:59 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { BTR_FIREWALL_STATUS, SERVER_MESSAGE_TYPES } from '@airbattle/protocol';
                                                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/btr/maintenance/players.ts:1:38 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { SERVER_MESSAGE_TYPES } from '@airbattle/protocol';
                                       ~~~~~~~~~~~~~~~~~~~~~

src/modes/btr/responses/broadcast/game-firewall.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/modes/btr/responses/broadcast/players-alive.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/modes/btr/responses/broadcast/server-custom.ts:1:68 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_CUSTOM_TYPES, SERVER_PACKETS } from '@airbattle/protocol';
                                                                     ~~~~~~~~~~~~~~~~~~~~~

src/modes/btr/responses/score-detailed.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/commands/switch.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/guards/spawn-camping.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/maintenance/flags.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_CAPTURE_BOUNTY, CTF_TEAMS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/maintenance/matches.ts:1:65 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS, CTF_WIN_BOUNTY, SERVER_MESSAGE_TYPES } from '@airbattle/protocol';
                                                                  ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/maintenance/players-stats.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/maintenance/players.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/periodic/infernos.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_TYPES } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/periodic/shields.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_TYPES } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/qbots/elections.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/qbots/flag-drop-fix.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/qbots/leaders.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/qbots/phantom-kick.ts:1:63 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { encodeUpgrades, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/qbots/usurpation.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/responses/broadcast/flag-captured.ts:1:49 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS, SERVER_MESSAGE_TYPES } from '@airbattle/protocol';
                                                  ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/responses/broadcast/flag-returned.ts:1:49 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS, SERVER_MESSAGE_TYPES } from '@airbattle/protocol';
                                                  ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/responses/broadcast/flag-taken.ts:1:49 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS, SERVER_MESSAGE_TYPES } from '@airbattle/protocol';
                                                  ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/responses/broadcast/game-flag.ts:1:74 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_FLAG_STATE, CTF_TEAMS, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                           ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/responses/broadcast/server-custom.ts:1:68 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_CUSTOM_TYPES, SERVER_PACKETS } from '@airbattle/protocol';
                                                                     ~~~~~~~~~~~~~~~~~~~~~

src/modes/ctf/responses/score-detailed.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/modes/ffa/periodic/infernos.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_TYPES } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/modes/ffa/responses/score-detailed.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/commands/lags.ts:1:28 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES } from '@airbattle/protocol';
                             ~~~~~~~~~~~~~~~~~~~~~

src/server/commands/upgrades.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_TYPES } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/server/components/flag.ts:1:35 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { FLAGS_ISO_TO_CODE } from '@airbattle/protocol';
                                    ~~~~~~~~~~~~~~~~~~~~~

src/server/components/game/match.ts:1:37 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { BTR_FIREWALL_STATUS } from '@airbattle/protocol';
                                      ~~~~~~~~~~~~~~~~~~~~~

src/server/connections.ts:1:56 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CLIENT_PACKETS, unmarshalClientMessage } from '@airbattle/protocol';
                                                         ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/backup.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/chat.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/command.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/horizon.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/key.ts:1:53 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets, KEY_CODES, KEY_NAMES } from '@airbattle/protocol';
                                                      ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/login.ts:1:50 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets, FLAGS_ISO_TO_CODE } from '@airbattle/protocol';
                                                   ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/pong.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/say.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/sync.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets, SERVER_PACKETS, SERVER_ERRORS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/teamchat.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/votemute.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/controllers/whisper.ts:1:31 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ClientPackets } from '@airbattle/protocol';
                                ~~~~~~~~~~~~~~~~~~~~~

src/server/guards/packets.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/helpers.ts:2:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

2 import { ClockTime } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/metrics.ts:2:28 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

2 import { GAME_TYPES } from '@airbattle/protocol';
                             ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/players/connect.ts:1:55 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES, PLAYER_LEVEL_UPDATE_TYPES } from '@airbattle/protocol';
                                                        ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/players/disconnect.ts:1:28 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES } from '@airbattle/protocol';
                             ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/players/kill.ts:1:39 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES, MOB_TYPES } from '@airbattle/protocol';
                                        ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/players/powerup.ts:1:38 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { PLAYER_POWERUP_TYPES } from '@airbattle/protocol';
                                       ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/players/update.ts:1:46 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS, FLAGS_ISO_TO_CODE } from '@airbattle/protocol';
                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/powerups.ts:1:58 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES, MOB_DESPAWN_TYPES, MOB_TYPES } from '@airbattle/protocol';
                                                           ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/projectiles.ts:1:35 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_DESPAWN_TYPES } from '@airbattle/protocol';
                                    ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/spectating.ts:1:28 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { GAME_TYPES } from '@airbattle/protocol';
                             ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/sync.ts:1:32 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { SERVER_PACKETS } from '@airbattle/protocol';
                                 ~~~~~~~~~~~~~~~~~~~~~

src/server/maintenance/warming.ts:1:39 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CTF_TEAMS, GAME_TYPES } from '@airbattle/protocol';
                                        ~~~~~~~~~~~~~~~~~~~~~

src/server/periodic/ping.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/periodic/sync.ts:1:32 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { SERVER_PACKETS } from '@airbattle/protocol';
                                 ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/afk-disconnect.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/already-logged-in.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/backup.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/ban.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/chat-public.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/chat-say.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/chat-server-public.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/chat-server-team.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/chat-server-whisper.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/chat-team.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/chat-whisper.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/event-boost.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/event-bounce.ts:1:63 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { encodeKeystate, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/event-repel.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/event-stealth.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/mob-despawn-coords.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/mob-despawn.ts:1:66 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_DESPAWN_TYPES, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                   ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/mob-update-stationary.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/mob-update.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-fire.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-flag.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-hit.ts:1:58 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_TYPES, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                           ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-kill.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-leave.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-level.ts:1:74 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { PLAYER_LEVEL_UPDATE_TYPES, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                           ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-new.ts:1:63 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { encodeUpgrades, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-respawn.ts:1:63 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { encodeUpgrades, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-reteam.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-type.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/player-update.ts:1:79 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { encodeKeystate, encodeUpgrades, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/score-board.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/broadcast/server-message.ts:1:69 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_MESSAGE_TYPES, SERVER_PACKETS } from '@airbattle/protocol';
                                                                      ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/chat-votemuted.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/chat-votemutepassed.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/command-reply.ts:1:68 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { COMMAND_REPLY_TYPES, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                     ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/event-leavehorizon.ts:1:68 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { LEAVE_HORIZON_TYPES, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                     ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/game-spectate.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/incorrect-protocol.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/invalid-login.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/kick.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/kill-assist.ts:1:69 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_MESSAGE_TYPES, SERVER_PACKETS } from '@airbattle/protocol';
                                                                      ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/login.ts:1:63 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { encodeUpgrades, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/not-enough-upgrades.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/ping-result.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/player-powerup.ts:1:69 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { PLAYER_POWERUP_TYPES, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                      ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/player-upgrade.ts:1:69 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { PLAYER_UPGRADE_TYPES, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                      ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/players-limit.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/respawn-inactivity-required.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/score-update.ts:1:74 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { PLAYER_LEVEL_UPDATE_TYPES, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                           ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/server-message.ts:1:69 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_MESSAGE_TYPES, SERVER_PACKETS } from '@airbattle/protocol';
                                                                      ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/server-player-connect.ts:1:63 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { encodeUpgrades, ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/spectate-inactivity-required.ts:1:62 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_ERRORS, SERVER_PACKETS } from '@airbattle/protocol';
                                                               ~~~~~~~~~~~~~~~~~~~~~

src/server/responses/spectate-kill.ts:1:47 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { ServerPackets, SERVER_PACKETS } from '@airbattle/protocol';
                                                ~~~~~~~~~~~~~~~~~~~~~

src/server/router.ts:1:48 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { CLIENT_PACKETS, ProtocolPacket } from '@airbattle/protocol';
                                                 ~~~~~~~~~~~~~~~~~~~~~

src/types/index.ts:1:27 - error TS2307: Cannot find module '@airbattle/protocol' or its corresponding type declarations.

1 import { MOB_TYPES } from '@airbattle/protocol';
                            ~~~~~~~~~~~~~~~~~~~~~

Found 124 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @airbattle/server@6.5.2 build:dev: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the @airbattle/server@6.5.2 build:dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-08-29T15_43_51_399Z-debug.log```
wight-airmash commented 3 years ago

Try to set unsafe-perm to true (npm config set unsafe-perm true) if you run dependencies installation as root.

ArtemBernatskyy commented 3 years ago

Oooh, @wight-airmash , it works, thank you!!!