vercel / og-image

Open Graph Image as a Service - generate cards for Twitter, Facebook, Slack, etc

Home Page:https://og-image.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to build docker image

HT-Moh opened this issue · comments

After fresh clone, I run the following command docker build . --file Dockerfile and I got the following error :

> og-image@1.0.0 build /usr/src/app
> tsc -p api/tsconfig.json && tsc -p web/tsconfig.json

api/_lib/parser.ts(17,17): error TS2531: Object is possibly 'null'.
api/_lib/parser.ts(35,26): error TS2345: Argument of type 'string | string[] | undefined' is not assignable to parameter of type 'string | string[]'.
  Type 'undefined' is not assignable to type 'string | string[]'.
api/_lib/parser.ts(36,26): error TS2345: Argument of type 'string | string[] | undefined' is not assignable to parameter of type 'string | string[]'.
  Type 'undefined' is not assignable to type 'string | string[]'.
api/_lib/parser.ts(37,27): error TS2345: Argument of type 'string | string[] | undefined' is not assignable to parameter of type 'string | string[]'.
  Type 'undefined' is not assignable to type 'string | string[]'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! og-image@1.0.0 build: `tsc -p api/tsconfig.json && tsc -p web/tsconfig.json`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the og-image@1.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!     /root/.npm/_logs/2021-04-26T12_26_25_104Z-debug.log

Did you run yarn install?