dot-cafe / beam.cafe.backend

🎒 Backend for beam.cafe.
https://beam.cafe/
10 stars 2 forks source link

Failed to npm run build #5

Closed mzch closed 3 years ago

mzch commented 3 years ago

Failed to npm run build

> share.io.server@0.0.0 build /srv/beam/beam.cafe.backend
> run-p build:ts build:templates

> share.io.server@0.0.0 build:ts /srv/beam/beam.cafe.backend
> tsc --project tsconfig.json

> share.io.server@0.0.0 build:templates /srv/beam/beam.cafe.backend
> node scripts/build.templates.js

Copied "templates" to "/srv/beam/beam.cafe.backend/dist/templates"
Copied "templates" to "/srv/beam/beam.cafe.backend/dist/templates"
Copied "download-gone.ejs" to "/srv/beam/beam.cafe.backend/dist/templates/download-gone.ejs"
Copied "download-notfound.ejs" to "/srv/beam/beam.cafe.backend/dist/templates/download-notfound.ejs"
Copied "download-offline.ejs" to "/srv/beam/beam.cafe.backend/dist/templates/download-offline.ejs"
Copied "download-rate-limited.ejs" to "/srv/beam/beam.cafe.backend/dist/templates/download-rate-limited.ejs"
Copied "download.ejs" to "/srv/beam/beam.cafe.backend/dist/templates/download.ejs"
Copied "error-404.ejs" to "/srv/beam/beam.cafe.backend/dist/templates/error-404.ejs"
Copied "partials" to "/srv/beam/beam.cafe.backend/dist/templates/partials"
Copied "seo.ejs" to "/srv/beam/beam.cafe.backend/dist/templates/partials/seo.ejs"
Compiled html/templates/download-notfound.scss
Compiled html/templates/download.scss
Compiled html/templates/download-gone.scss
Compiled html/templates/download-offline.scss
Compiled html/templates/download-rate-limited.scss
Compiled html/templates/error-404.scss
Compiled html/templates/download.js
src/socket/action.ts:22:61 - error TS2558: Expected 0 type arguments, but got 1.

22     const {error, value} = validation.ClientAction.validate<any>(data);
                                                               ~~~

src/socket/request.ts:14:62 - error TS2558: Expected 0 type arguments, but got 1.

14     const {error, value} = validation.ClientRequest.validate<any>(request);
                                                                ~~~

Found 2 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! share.io.server@0.0.0 build:ts: `tsc --project tsconfig.json`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the share.io.server@0.0.0 build:ts 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!     /srv/beam/.npm/_logs/2020-11-23T02_08_11_009Z-debug.log
ERROR: "build:ts" exited with 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! share.io.server@0.0.0 build: `run-p build:ts build:templates`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the share.io.server@0.0.0 build 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!     /srv/beam/.npm/_logs/2020-11-23T02_08_11_155Z-debug.log

How to fix?

simonwep commented 3 years ago

Fixed in 9540755babd3c6d770d07c50c0ebda5e9e948cb8, no idea what went wrong.