Giter Club home page Giter Club logo

dark-nova's People

Contributors

dependabot[bot] avatar puual avatar scuroguardiano 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dark-nova's Issues

Collaborating

Hey i come from the childhood from Ogame, i already develop during free time with NodeJS if you want collaborate just add me on Discord enkos#7573

Errors when running `npm run dev`

$ npm run dev

> dark-nova@0.0.7 dev /home/mpm/dev/dark-nova
> tsc --project ./tsconfig.json && node index --env development

src/server.ts:68:61 - error TS2769: No overload matches this call.
  Overload 1 of 6, '(port: number, hostname: string, backlog: number, callback?: (...args: any[]) => void): Server', gave the following error.
    Argument of type 'Function' is not assignable to parameter of type 'number'.
  Overload 2 of 6, '(port: number, hostname: string, callback?: (...args: any[]) => void): Server', gave the following error.
    Argument of type 'Function' is not assignable to parameter of type '(...args: any[]) => void'.
      Type 'Function' provides no match for the signature '(...args: any[]): void'.

68         this.server = this.app.listen(this.port, this.host, callback);
                                                               ~~~~~~~~


src/server.ts:76:31 - error TS2345: Argument of type 'Function' is not assignable to parameter of type '(err?: Error) => void'.
  Type 'Function' provides no match for the signature '(err?: Error): void'.

76             this.server.close(cb);
                                 ~~


Found 2 errors.

Additional info:
node v8.10.0
npm v6.11.3
Using WSL (Linux on Windows)
I also ran into this error, but I bypassed that by setting skipLibCheck true in tsconfig.json, and I assume that wasn't relate to this issue.

Add typescript as dev dependency

If typescript isn't installed as a dependency the build script relies on the user's installed version which can cause issues. Might be related to #4

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.