express-typescript-starter
express-typescript-starter copied to clipboard
cloned, npm install, npm start but gives bunch of issues
PS E:\iCrypto\oidc\trunk\demos\sample-oidc> npm start
[email protected] start E:\iCrypto\oidc\trunk\demos\sample-oidc npm run build && npm run watch
[email protected] build E:\iCrypto\oidc\trunk\demos\sample-oidc npm run build-sass && npm run build-ts && npm run tslint && npm run copy-static-assets
[email protected] build-sass E:\iCrypto\oidc\trunk\demos\sample-oidc node-sass src/public/css/main.scss dist/public/css/main.css
Rendering Complete, saving .css file... Wrote CSS to E:\iCrypto\oidc\trunk\demos\sample-oidc\dist\public\css\main.css
[email protected] build-ts E:\iCrypto\oidc\trunk\demos\sample-oidc tsc
node_modules/@types/passport-facebook/index.d.ts:50:31 - error TS2689: Cannot extend an interface 'passport.Strategy'. Did you mean 'implements'?
50 export class Strategy extends passport.Strategy { ~~~~~~~~~~~~~~~~~
node_modules/@types/request/index.d.ts:66:15 - error TS2430: Interface 'DefaultUriUrlRequestApi<TRequest, TOptions, TUriUrlOptions>' incorrectly extends interface 'RequestAPI<TRequest, TOptions, TUriUrlOptions>'. Types of property 'defaults' are incompatible. Type '(options: TOptions) => DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>' is not assignable to type '{ (options: TOptions): RequestAPI<TRequest, TOptions, RequiredUriUrl>; (options: (UriOptions & TO...'. Type 'DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>' is not assignable to type 'RequestAPI<TRequest, TOptions, RequiredUriUrl>'. Types of property 'delete' are incompatible. Type '{ (uri: string, options?: TOptions, callback?: request.RequestCallback): TRequest; (uri: string, ...' is not assignable to type '{ (uri: string, options?: TOptions, callback?: request.RequestCallback): TRequest; (uri: string, ...'. Two different types with this name exist, but they are unrelated. Types of parameters 'options' and 'options' are incompatible. Type '(UriOptions & TOptions) | (UrlOptions & TOptions)' is not assignable to type 'OptionalUriUrl & TOptions'. Type 'UriOptions & TOptions' is not assignable to type 'OptionalUriUrl & TOptions'. Type 'UriOptions & TOptions' is not assignable to type 'OptionalUriUrl'. Types of property 'uri' are incompatible. Type 'string | Url' is not assignable to type 'string'. Type 'Url' is not assignable to type 'string'.
66 interface DefaultUriUrlRequestApi<TRequest extends Request, ~~~~~~~~~~~~~~~~~~~~~~~
src/controllers/user.ts:83:77 - error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.
83 req.assert("password", "Password must be at least 4 characters long").len(4); ~
src/controllers/user.ts:168:77 - error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.
168 req.assert("password", "Password must be at least 4 characters long").len(4); ~
src/controllers/user.ts:248:78 - error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.
248 req.assert("password", "Password must be at least 4 characters long.").len(4); ~