Giter Site home page Giter Site logo

Comments (11)

lucky-lou avatar lucky-lou commented on May 3, 2024 1

Changed these lines from
req.assert("password", "Password must be at least 4 characters long.").len(4);
to
req.assert("password", "Password must be at least 4 characters long.").len({min: 4});

from typescript-node-starter.

bowdenk7 avatar bowdenk7 commented on May 3, 2024

On it, give me a couple hours, thanks!

from typescript-node-starter.

lucky-lou avatar lucky-lou commented on May 3, 2024

Just pulled this down and I'm getting the same message reported above.

from typescript-node-starter.

lucky-lou avatar lucky-lou commented on May 3, 2024

Changed package.json
"@types/request": "0.0.42"
to
"@types/request": "^0.0.45"
made this error go away.

still get these errors

src/controllers/user.ts(83,77): error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.
src/controllers/user.ts(168,77): error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.
src/controllers/user.ts(248,78): error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.

from typescript-node-starter.

lucky-lou avatar lucky-lou commented on May 3, 2024

Last fixes were to add whitespace in controllers import lines and in passport config
import {Request, Response, NextFunction} from "express";
to
import { Request, Response, NextFunction } from "express";

from typescript-node-starter.

 avatar commented on May 3, 2024

@bowdenk7 a couple of hours? Still not working.

from typescript-node-starter.

markmssd avatar markmssd commented on May 3, 2024

I've installed this project just yesterday and it worked from the first try

from typescript-node-starter.

lucky-lou avatar lucky-lou commented on May 3, 2024

I would suggest you try it today. I just downloaded it and did npm install on a different machine. Get same errors.
node_modules/@types/request/index.d.ts(66,15): error TS2430: Interface 'DefaultUriUrlRequestApi<TRequest, TOptions, TUriUrlOptions>' incorrectly extends interfa
rlOptions>'.
Types of property 'defaults' are incompatible.
Type '(options: TOptions) => DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>' is not assignable to type '{ (options: TOptions): RequestAPI<TRequ
: (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,
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'.
src/controllers/user.ts(83,77): error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.
src/controllers/user.ts(168,77): error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.
src/controllers/user.ts(248,78): error TS2559: Type '4' has no properties in common with type 'MinMaxOptions'.

from typescript-node-starter.

lucky-lou avatar lucky-lou commented on May 3, 2024

Pulled down the latest version. Everything is now working.

from typescript-node-starter.

bowdenk7 avatar bowdenk7 commented on May 3, 2024

Awesome, thanks for verifying. @notsonotso sorry for the delay. Can verify all is good on your end?

from typescript-node-starter.

 avatar commented on May 3, 2024

@bowdenk7 works perfectly. Thanks!

from typescript-node-starter.

Related Issues (20)

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.