micklynch / travelbudget Goto Github PK
View Code? Open in Web Editor NEWRESTful API for logging travel costs
RESTful API for logging travel costs
Hello,
i'm trying to build the project in order to run the server but the building with vscode tsc is failing because of a problem with jasmine in node modules. I tried to lower my version of ts but it's not working.
Thank's for sharing this project
ERROR in node_modules/sequelize-typescript/lib/utils/types.d.ts(1,100): error TS2536: Type 'T' cannot be used to index type '{ [P in T]: P; } & { [P in U]: never; } & { [x: string]: never; }'.
node_modules/sequelize-typescript/lib/utils/types.d.ts(2,11): error TS2322: Type 'T' is not assignable to type 'string'.
Type 'PropertyKey' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.
node_modules/sequelize-typescript/lib/utils/types.d.ts(4,11): error TS2322: Type 'U' is not assignable to type 'string'.
Type 'PropertyKey' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.
src/server/database.ts(2,26): error TS2307: Cannot find module '../../config'.
Hello Mick,
When i tried to run node server.js I have this error :
node server.js
/........................./tuto/travelbudget-master/node_modules/sequelize-typescript/lib/services/models.js:158
throw new Error("Specified type of property '" + propertyName + "'\n cannot be automatically resolved to a sequelize data type. Please\n define the data type manually");
^
Error: Specified type of property 'country'
cannot be automatically resolved to a sequelize data type. Please
define the data type manually
at Object.getSequelizeTypeByDesignType (/............................./tuto/travelbudget-master/node_modules/sequelize-typescript/lib/services/models.js:158:11)
Any ideas ?
Phil
So I used this project as a tutorial for my Angular 7 project to create Postgres backend. I managed to make everything but when building, how do I get that server folder to tsc-out? You only mention about building ts -files, but you do not show how it is done in VSCode or give any reference to this action. Why?
So if you could add this information to your medium article, and also that config.ts from comments.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.