Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsc fails #1

Closed
rightisleft opened this issue Nov 13, 2016 · 2 comments
Closed

tsc fails #1

rightisleft opened this issue Nov 13, 2016 · 2 comments

Comments

@rightisleft
Copy link

Just checked out the repo and follows the instructions in README. NPM start fails - i noticed there's no build folder. Running tsc manually results in:

➜  typescript-example git:(master) ✗ tsc
node_modules/rxjs/observable/PairsObservable.d.ts(1,1): error TS2688: Cannot find type definition file for 'chai'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(1,1): error TS2688: Cannot find type definition file for 'chai'.
src/entity/Post.ts(17,9): error TS2345: Argument of type '{ cascadeInert: boolean; }' is not assignable to parameter of type 'string | ((object: {}) => any)'.
  Object literal may only specify known properties, and 'cascadeInert' does not exist in type 'string | ((object: {}) => any)'.
@WalterLeinert
Copy link

I had the same problem.
I got a running sample after:

  • npm install --save typeorm@0.0.2-alpha.70
  • Post.ts: fixing typo "cascadeInert: true" -> "cascadeInsert: true"
  • index.ts: changing "autoSchemaCreate: true" -> "autoSchemaSync true"

Regards,
Walter

@pleerock
Copy link
Member

thanks @WalterLeinert I have updated it to latest typeorm version + fixed typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants