Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. spangeman
  3. Posts
  • Profile
  • More
    • Continue chat with spangeman
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

Posts made by spangeman

Running Construct 3 server locally fails

Hi, I am trying to run the Construct 3 server code from https://glitch.com/~colyseus-construct3 but it fails with the following output. I have obtained the code by doing a remix and then cloning the source code locally in GIT. Before running NPM start I ran NPM install to get all the latest packages.
Any ideas on how I can fix this?
Thanks

PS C:\Users\bob\canyon-purple-thief> npm start
npm WARN config global --global, --local are deprecated. Use --location=global instead.

colyseus-pixijs-boilerplate@1.0.6 start
node node_modules/ts-node/dist/bin.js ./src/server/index.ts

C:\Users\bob\canyon-purple-thief\node_modules\ts-node\src\index.ts:434
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/server/rooms/Entity.ts:1:30 - error TS2307: Cannot find module '@colyseus/schema' or its corresponding type declarations.

1 import { Schema, type } from "@colyseus/schema";
~~~~~~~~~~~~~~~~~~

at createTSError (C:\Users\bob\canyon-purple-thief\node_modules\ts-node\src\index.ts:434:12)
at reportTSError (C:\Users\bob\canyon-purple-thief\node_modules\ts-node\src\index.ts:438:19)
at getOutput (C:\Users\bob\canyon-purple-thief\node_modules\ts-node\src\index.ts:578:36)
at Object.compile (C:\Users\bob\canyon-purple-thief\node_modules\ts-node\src\index.ts:775:32)
at Module.m._compile (C:\Users\bob\canyon-purple-thief\node_modules\ts-node\src\index.ts:858:43)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions.<computed> [as .ts] (C:\Users\bob\canyon-purple-thief\node_modules\ts-node\src\index.ts:861:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)

PS C:\Users\bob\canyon-purple-thief>

posted in Questions & Help • 3 Jun 2022, 14:18

© 2023 Endel Dreyer