ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

windows: cannot find type definition file for node/jasmine

Open KiaraGrouwstra opened this issue 9 years ago • 3 comments

I ran into a Windows issue on 2.0.0, matching @sweetim's report here:

when I am using ts-node on Windows, it will complain cannot find type definition file for node which is related to issue #216 , this doesnt happen at Linux.

Bash on Windows does indeed seem to relieve this issue...

KiaraGrouwstra avatar Mar 06 '17 21:03 KiaraGrouwstra

Seems like an exact duplicate of https://github.com/TypeStrong/ts-node/issues/283 too? If someone using Windows can submit a PR here or correct the bug in TypeScript, that'd be really helpful to me. If I had to guess, it's probably a TypeScript normalizeSlashes issue with the base path of the tsconfig.json content parser (TypeScript has a funky external API where it sometimes supports real paths and sometimes only supports paths where backslashes are replaced with forward slashes).

blakeembrey avatar Mar 06 '17 22:03 blakeembrey

Whoops, looks like my search failed me there...

KiaraGrouwstra avatar Mar 06 '17 22:03 KiaraGrouwstra

I had this error while trying to run npm run e2e on a mac, and fixed it with the following:

change package.json "scripts" variable from:


    "scripts": {
        ...
        "pree2e": "webdriver-manager update --standalone false --gecko false",
        "e2e": "protractor"
      }

to


    "scripts": {
        ...
        // REMOVE "pree2e"
        "e2e": "ng e2e"
      }

maiasmith avatar Jun 28 '17 18:06 maiasmith