Comments (5)
Hi,
This is related to the new typescript 2.0's @types feature. I updated the README file to reflect how to install it using typescript 2.0 instead of typescript 1.X with typings.
Please try to remove typings from your project and just run
npm install @types/serve-static --save-dev
npm install @types/express-serve-static-core --save-dev
npm install @types/express --save-dev
npm install @types/es6-promise --save-dev
If you are still having problems with this, please provide me your tsconfig.json and package.json files.
Thanks
from typescript-rest.
It compiles (with errors)
rest.ts(5,7): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
rest.ts(7,3): error TS1241: Unable to resolve signature of method decorator when called as an expression.
Supplied parameters do not match any signature of call target.
rest.ts(8,3): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
rest.ts(8,13): error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
and running it (node rest.js
), results in: TypeError: Cannot read property 'length' of undefined
from typescript-rest.
Are you setting in your tsconfig.json file?
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}
from typescript-rest.
yes, when I execute tsc rest.ts
the issue persists
from typescript-rest.
I can not reproduce the issue. Can you provide your configuration files, or a link to your project?
from typescript-rest.
Related Issues (20)
- Response codes not appearing in generated swagger HOT 1
- How to respond with multipart/form-data HOT 1
- docs: Upgrade instructions for 2.X -> 3.X missing HOT 1
- Multiple @Security tags? HOT 1
- Multer HOT 1
- Wiki Example: Syntax Error / Typo
- ContextRequest doesn't have right types HOT 1
- swagger-ui-dist dependency with vulnerability at version 3.38.0
- How To Contribute ?
- @PreProcessor errors not catched by express error middleware HOT 1
- express limits
- Requesting to upgrade few internal dependent packages which seems to have potential fixes reported in OSS CVE
- PassportJS with Google OAuth strategy not working as expected
- @Options Method decorator
- Two routes beign called at the same time HOT 1
- Route calls next() after sending response
- Question, can i have multiple preproccesors?
- Migrate to tsoa? HOT 2
- Vulnerabilities busboy and dicer HOT 1
- whether support in @hapi/hapi
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-rest.