Closed
Description
TypeScript Version: 2.4.1
Code
https://github.com/Mercateo/ws/tree/v2
Diff yarn.lock
:
typescript@^2.3.4:
- version "2.4.0"
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.0.tgz#aef5a8d404beba36ad339abf079ddddfffba86dd"
+ version "2.4.1"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.1.tgz#c3ccb16ddaa0b2314de031e7e6fee89e5ba346bc"
$ yarn
$ npm run build
Expected behavior:
Compile.
Actual behavior:
ERROR in /Users/foo/Workspace/mercateo-ws/tsconfig.json
error TS2688: Cannot find type definition file for 'node'.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ghost commentedon Jun 27, 2017
Try using
--traceResolution
.andykellr commentedon Jun 27, 2017
We are having the same problem, but it only seems to surface when running mocha with
--require ts-node/register
. Rolling back to 2.3.4 and will watch this issue.sgmccli commentedon Jun 27, 2017
Same issue here with ts-node/register. Fails to find all imported @types modules. I have reverted back to 2.3.4.
JnelsonEmarketer commentedon Jun 27, 2017
Ditto
johntran commentedon Jun 27, 2017
I've been debugging for the past 2.5 hours. Thank you for this issue. I was going insane.
RobARichardson commentedon Jun 28, 2017
Having the same issue, but for several other type definition files including angular, angular-material, and more. Had to revert back to 2.3.4.
JasonKleban commentedon Jun 28, 2017
I think this is also an issue with ts-loader. 'tsc -p .' works fine but as of this upgrade,
webpack
with ts-loader involved fails like this:(which is kinda weird because it looks like it built everything successfully before it errors out with this??)
Rolling back to 2.3.4 and the problem is gone.
teppeis commentedon Jun 28, 2017
similar issue: teppeis/typescript-simple#82
lkc0987 commentedon Jun 28, 2017
Having similar issues with type definitions. (node, jquery...)
enforced typescript version 2.4.0 using npm-shrinkwrap as a workaround
ldrick commentedon Jun 28, 2017
Having same issues with all of our type definitions, which are:
dashmug commentedon Jun 28, 2017
Same problem here.
skseth commentedon Jun 28, 2017
I had similar problems with ts-node, but tsc -p was fine. Upgrading to v3.1.0 fixed the problem.
55 remaining items