Comments (11)
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.
On it, give me a couple hours, thanks!
from typescript-node-starter.
Just pulled this down and I'm getting the same message reported above.
from typescript-node-starter.
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.
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.
@bowdenk7 a couple of hours? Still not working.
from typescript-node-starter.
I've installed this project just yesterday and it worked from the first try
from typescript-node-starter.
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.
Pulled down the latest version. Everything is now working.
from typescript-node-starter.
Awesome, thanks for verifying. @notsonotso sorry for the delay. Can verify all is good on your end?
from typescript-node-starter.
@bowdenk7 works perfectly. Thanks!
from typescript-node-starter.
Related Issues (20)
- README link to TypeScript Website's documentation is broken HOT 1
- client ts files and server ts files should compile to diffrent target HOT 3
- None of the tests pass. HOT 3
- Upgrade to TS 4.0 HOT 6
- Live demo is not working HOT 1
- :( Application Error If you are the application administrator, you can access the diagnostic resources. HOT 3
- Add a sample azure-pipelines.yml HOT 2
- Cannot read property 'picture' of undefined HOT 2
- Upgrade the connect-mongo package to v4 HOT 1
- To add more topics to this repository
- Checked out from master and audit still reported high severity vulnerability found.
- [Node] MongoError: E11000 duplicate key error collection HOT 1
- MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED 127.0.0.1:27017 HOT 1
- Cannot GET /favicon.ico HOT 2
- Error(s) on update dependencies HOT 2
- The README.md live demo link is broken HOT 3
- User.ts - why Pre Middleware instead of setter for password? HOT 1
- Cannot find tsconfig.test.json HOT 1
- build failed HOT 4
- Error in development mode: req.session.returnTo = req.path; HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-node-starter.