[dba-Tech] Bad karma - a kind of punning, but not only - I have got an issue with nodejs' karma module while installing gulp...

Salakhetdinov Shamil mcp2004 at mail.ru
Tue Jun 2 19:57:37 CDT 2015


 Hi Jim --

Thank you.

I have also got a couple of advanced TypeScript samples:

1st:  TypeScript Sample: Todo MVC
https://github.com/Microsoft/TypeScriptSamples/tree/master/todomvc

2nd:   Modularization in TypeScript
https://keyholesoftware.com/2013/01/14/modularization-in-typescript/

The first one after quite a few edits compiles (via gulp)  but gets error TS2403 (see below)

[02:56:32] Starting 'ts-lint'...
[02:56:32] Starting 'compile-ts'...
[02:56:32] Starting 'gen-ts-refs'...
[02:56:32] gulp-inject 1 files into typescriptApp.d.ts.
[02:56:32] Finished 'ts-lint' after 153 ms
[02:56:32] Finished 'gen-ts-refs' after 193 ms tools\typings\jquery\jquery.d.ts(3935,13):
     error TS2403: Subsequent variable declarations must have the same type. 
     Variable '$' must be of type '{ (el: HTMLElement): JQuery; (selector: string): JQuery; (readyCallback: () => void): JQuery;
}', but here has type 'JQueryStatic'.
[02:56:33] TypeScript: 1 semantic error
[02:56:33] TypeScript: emit succeeded (with errors)
[02:56:33] Finished 'compile-ts' after 945 ms
I cannot find how to fix this compile error. Anyway, the compiled into/emitted js code runs well.

And the 2nd project doesn't compile

....\Typescript\demo2>tsc --module AMD .\public\script\app.ts
....\Typescript\demo2\public\script\app.ts(5,33) : error TS1005: ';' expected.

It's unclear for me why the following code line

import UnderscoreModule = module("libs/underscore" );
causes compile error in position 33 ?
Thank you.

-- Shamil


Tuesday, June  2, 2015 3:17 PM -06:00 from Jim Lawrence <accessd at shaw.ca>:
>Hi Shamil:
>
>Why does that not surprise me? ;-) Good work.
>
>Jim
>
>----- Original Message -----
>From: "Salakhetdinov Shamil" < mcp2004 at mail.ru >
>To: "Discussion of Hardware and Software issues" < dba-tech at databaseadvisors.com >
>Sent: Tuesday, June 2, 2015 2:10:39 PM
>Subject: Re: [dba-Tech] Bad karma - a kind of punning, but not only - I have got an issue with nodejs' karma module while installing gulp...
>
> Hi All --
>
>Never mind.
>I have solved the subject issue by manual removing/reinstalling of all the nodejs modules via command line.
>Now I'm getting my feet wet with Sublime, ignoring VS, and taking hardcore route with TypeScript learning... :)
>
>-- Shamil
>


More information about the dba-Tech mailing list