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

Help for Visual Studio 2015 #6

Open
phobos04 opened this issue Nov 3, 2015 · 2 comments
Open

Help for Visual Studio 2015 #6

phobos04 opened this issue Nov 3, 2015 · 2 comments

Comments

@phobos04
Copy link

phobos04 commented Nov 3, 2015

Hi,
I'm choosing the architecture for an EF/Web.API web application I'm working on. I'm evaluating several alternatives and I really like your Tripod approach.
I'm trying to test this solution in visual studio 2015, but I'm having some build-time errors in some .ts files (all errors are in the Tripod.Web project, built with the "Debug" configuration):

  • Error 1: Build: Argument of type 'JQuery | string' is not assignable to parameter of type 'string'.
    File: --SolutionDir--\Tripod.Web\app_common\unobtrusive\bootbox-confirm.ts Line: 8
  • Error 2: Build: Type '{ preprocess: (value: string) => string; update: (element: Element, valueAccessor: () => any, all...' is not assignable to type 'KnockoutBindingHandler'.
    File: --SolutionDir--\Tripod.Web\app_common\widgets\BindingHandlers.ts Line: 6
  • Error 3: Build: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
    File: --SolutionDir--\Tripod.Web\app_common\widgets\BindingHandlers.ts Line:12
  • Error 4: Build: Type '{ value: (other: any) => any; validator: (val: any, otherField: any) => boolean; message: string; }' is not assignable to type 'KnockoutValidationRuleDefinition'.
    File: --SolutionDir--\Tripod.Web\app_common\widgets\ValidationRules.ts Line: 47

Please, as I'm a bit new on the .ts world, could you help me figure out how to solve these errors?
Thank you so much.
Matteo

@ghost
Copy link

ghost commented Dec 29, 2015

Same. Not sure how to fix the TypeScript stuff

@danludwig
Copy link
Owner

Hi @phobos04 and @sproutslypaul, I am terribly sorry I missed this issue. I haven't made any commits to tripod in a while, as you can see. As for Typescript, I imagine the problem is due to a TypeScript version issue. TypeScript has come a long way since I last used it. Perhaps try installing an older version of TypeScript like 1.0?

You might also want to try deleting all of the .ts files, as they should have already been compiled to javascript and checked into source control. I am sorry, I wish I could be more helpful.

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

2 participants