Giter Club home page Giter Club logo

colyseus-babylonjs-boilerplate's Introduction

colyseus-babylonjs-boilerplate's People

Contributors

brian-hay avatar cocosgames avatar endel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colyseus-babylonjs-boilerplate's Issues

Typescript 3

I've noticed both BabylonJS and Colyseus use TypeScript 3+, however this repo by default has version 2.8. Should we update it?

npm run compile-server && npm run compile-client fails

Just made changes to main.ts in client and got the following error messages when pushing to heroku

   ├── [email protected]

   ├── [email protected]

   └── [email protected]

       

   [at-loader] Using [email protected] from typescript and "tsconfig.json" from /tmp/build_7137f8ef206207cd60434dddf507ab7c/client/tsconfig.json       

   [at-loader] Checking started in a separate process...    

   [at-loader] Checking finished with 4 errors

   Hash:id: 34396

6207cd60434dddf507ab7c/.npmrc"

   npm ERR! node v6.9.2

   npm ERR! npm  v3.10.9

   npm ERR! code ELIFECYCLE

   npm ERR! [email protected] install: `npm run compile-server && npm run compile-client`

   npm ERR! Exit status 1

   npm ERR!

   npm ERR! Failed at the [email protected] install script 'npm run compile-server && npm run compile-client'.

   npm ERR! Make sure you have the latest version of node.js and npm installed.

   npm ERR! If you do, this is most likely a problem with the babylonjs-colyseus package,

   npm ERR! not with npm itself.

   npm ERR! Tell the author that this fails on your system:

   npm ERR!     npm run compile-server && npm run compile-client

   npm ERR! You can get information on how to open an issue for this project with:

   npm ERR!     npm bugs babylonjs-colyseus

   npm ERR! Or if that isn't available, you can get their info via:

   npm ERR!     npm owner ls babylonjs-colyseus

   npm ERR! There is likely additional logging output above.

   

   npm ERR! Please include the following file with any support request:

   npm ERR!     /tmp/build_7137f8ef206207cd60434dddf507ab7c/npm-debug.log

Property 'onPatch' does not exist on type 'Room<{}>'

onPatch removed from Room in colyseus.js 0.6.0 so latest babylonjs-multiplayer-boilerplate client fails to compile with following error:

ERROR in [at-loader] ./src/game/main.ts:5:6
    TS2551: Property 'onPatch' does not exist on type 'Room<{}>'. Did you mean 'patch'?

Error deploying to Heroku

Tried Heroku deployment but got the following error:

-----> Node.js app detected
-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NPM_CONFIG_PRODUCTION=true
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries
engines.node (package.json): 6.9.1
engines.npm (package.json): unspecified (use default)

   Downloading and installing node 6.9.1...
   Using default npm version: 3.10.8

-----> Restoring cache
Skipping cache restore (new runtime signature)
-----> Building dependencies
Installing node modules (package.json)

   > [email protected] install /tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350
   > npm run compile-server && npm run compile-client
   
   
   > [email protected] compile-server /tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350
   > npm install --prefix server && tsc -p server
   
   [email protected] /tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350/server
   ├── @types/[email protected]
   ├─┬ @types/[email protected]
   │ ├── @types/[email protected]
   │ └─┬ @types/[email protected]
   │   └── @types/[email protected]
   ├── @types/[email protected]
   ├── @types/[email protected]
   ├─┬ [email protected]
   │ ├── @types/[email protected]
   │ ├── @types/[email protected]
   │ ├── @types/[email protected]
   │ ├── @types/[email protected]
   │ ├─┬ [email protected]
   │ │ └── [email protected]
   │ ├── [email protected]
   │ ├─┬ [email protected]
   │ │ ├── [email protected]
   │ │ ├── [email protected]
   │ │ ├── [email protected]
   │ │ └── [email protected]
   │ ├─┬ [email protected]
   │ │ └── [email protected]
   │ └─┬ [email protected]
   │   ├── [email protected]
   │   └── [email protected]
   ├─┬ [email protected]
   │ └── [email protected]
   ├─┬ [email protected]
   │ ├─┬ [email protected]
   │ │ ├─┬ [email protected]
   │ │ │ └── [email protected]
   │ │ └── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├─┬ [email protected]
   │ │ └── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├─┬ [email protected]
   │ │ ├── [email protected]
   │ │ └── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├─┬ [email protected]
   │ │ └── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├─┬ [email protected]
   │ │ ├── [email protected]
   │ │ └── [email protected]
   │ ├── [email protected]
   │ ├── [email protected]
   │ ├─┬ [email protected]
   │ │ ├── [email protected]
   │ │ ├─┬ [email protected]
   │ │ │ ├── [email protected]
   │ │ │ └── [email protected]
   │ │ └── [email protected]
   │ ├── [email protected]
   │ ├─┬ [email protected]
   │ │ └── [email protected]
   │ └── [email protected]
   └── [email protected]
   
   sh: 1: tsc: not found
   
   npm ERR! Linux 3.13.0-105-generic
   npm ERR! argv "/tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350/.heroku/node/bin/node" "/tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350/.heroku/node/bin/npm" "run" "compile-server"
   npm ERR! node v6.9.1
   npm ERR! npm  v3.10.8
   npm ERR! file sh
   npm ERR! code ELIFECYCLE
   npm ERR! errno ENOENT
   npm ERR! syscall spawn
   npm ERR! [email protected] compile-server: `npm install --prefix server && tsc -p server`
   npm ERR! spawn ENOENT
   npm ERR!
   npm ERR! Failed at the [email protected] compile-server script 'npm install --prefix server && tsc -p server'.
   npm ERR! Make sure you have the latest version of node.js and npm installed.
   npm ERR! If you do, this is most likely a problem with the babylonjs-colyseus package,
   npm ERR! not with npm itself.
   npm ERR! Tell the author that this fails on your system:
   npm ERR!     npm install --prefix server && tsc -p server
   npm ERR! You can get information on how to open an issue for this project with:
   npm ERR!     npm bugs babylonjs-colyseus
   npm ERR! Or if that isn't available, you can get their info via:
   npm ERR!     npm owner ls babylonjs-colyseus
   npm ERR! There is likely additional logging output above.
   
   npm ERR! Please include the following file with any support request:
   npm ERR!     /tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350/npm-debug.log
   
   npm ERR! Linux 3.13.0-105-generic
   npm ERR! argv "/tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350/.heroku/node/bin/node" "/tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350/.npmrc"
   npm ERR! node v6.9.1
   npm ERR! npm  v3.10.8
   npm ERR! code ELIFECYCLE
   npm ERR! [email protected] install: `npm run compile-server && npm run compile-client`
   npm ERR! Exit status 1
   npm ERR!
   npm ERR! Failed at the [email protected] install script 'npm run compile-server && npm run compile-client'.
   npm ERR! Make sure you have the latest version of node.js and npm installed.
   npm ERR! If you do, this is most likely a problem with the babylonjs-colyseus package,
   npm ERR! not with npm itself.
   npm ERR! Tell the author that this fails on your system:
   npm ERR!     npm run compile-server && npm run compile-client
   npm ERR! You can get information on how to open an issue for this project with:
   npm ERR!     npm bugs babylonjs-colyseus
   npm ERR! Or if that isn't available, you can get their info via:
   npm ERR!     npm owner ls babylonjs-colyseus
   npm ERR! There is likely additional logging output above.
   
   npm ERR! Please include the following file with any support request:
   npm ERR!     /tmp/build_5f94ecac3f7ac0e13ce63cf17d1ecf3d/endel-babylonjs-multiplayer-boilerplate-20c1350/npm-debug.log

-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys
   
   If you're stuck, please submit a ticket so we can help:
   https://help.heroku.com/
   
   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed

Client/ npm start fails

Using v8.9.4 on MacOS. npm 5.6.0

npm install in both client/ and server/ seems to work. npm start in server/ seems to work, but when I run npm start in the client/ directory, I get this error/output:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:babylonjs-multiplayer-boilerplate/client/node_modules/.bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:
9 verbose lifecycle [email protected]~start: CWD: babylonjs-multiplayer-boilerplate/client
10 silly lifecycle [email protected]~start: Args: [ '-c', 'webpack-dev-server --host 0.0.0.0' ]
11 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `webpack-dev-server --host 0.0.0.0`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd babylonjs-multiplayer-boilerplate/client
16 verbose Darwin 17.7.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v8.9.4
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `webpack-dev-server --host 0.0.0.0`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Time out when deploying

Maybe because I did some name changes as at https://github.com/dragonmaths/nine-clone-morris but I keep getting a timeout error when pushing

` [at-loader] Using [email protected] from typescript and "tsconfig.json" from /tmp/build_37b2f289e9503b7a3455af4760078e9f/client/tsconfig.json

   [at-loader] Checking started in a separate process...

   

   [at-loader] Ok, 0.69 sec.

   Hash: 75ebb67a17d978ba98a4

   Version: webpack 2.1.0-beta.27

   Time: 5931ms

   Asset       Size  Chunks             Chunk Names

   bundle.js    1.55 MB       0  [emitted]  main

   styles.css  135 bytes       0  [emitted]  main

   bundle.js.map    1.62 MB       0  [emitted]  main

   styles.css.map   83 bytes       0  [emitted]  main

   index.html  265 bytes          [emitted]

   + 79 hidden modules

   Child html-webpack-plugin for "index.html":

   + 4 hidden modules

   Child extract-text-webpack-plugin:

   + 2 hidden modules

! Timed out compiling app (60 minutes)

! See https://devcenter.heroku.com/articles/slug-compiler#time-limit`

after Child extract-text-webpack-plugin:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.