I have a project cloned on two separate machines, each running VS2015 with Typings 1.8.6 installed. One machine is running the Enterprise version while the other has the Professional version, although I don't think that should make a difference.
Interestingly, on the first machine, I am getting full intellisense support even without any triple slash references in individual files. It seems to pick up the triple slash file from a single file called refs.d.ts in the scripts folder, similar to a _references.js file.
However, on the second machine, all external imports are throwing a 'Cannot find module ...' error. This issue does not affect internal imports from other project files.
For example, this line fails:
import {Component} from 'angular2/core'
But this line works:
import {AppComponent} from './app.component';
It seems like the working machine has some sort of global or environment settings that the second machine is missing. Despite my efforts over the last few days, I haven't been able to resolve this issue. Any help would be greatly appreciated.
Here's what I've tried on the second machine:
Adding triple slash references in individual .ts files
///<reference path="../../node_modules/angular2/typings/browser.d.ts" />
Modifying tsconfig.js:
- Removing node_modules from the exclude list
- Explicitly referencing the angular2 type definition file in the files array
- Setting ModuleResolution to 'Node'
Reinstalling typings in Visual Studio.