I am trying to use vss-web-extension-sdk
from node_modules, when I compile the project is compiled.
A small piece of code from a typescript file
VSS.init({
explicitNotifyLoaded: false,
usePlatformStyles: true,
usePlatformScripts: true
});
Directory structure of vss-web-extension-sdk (under node_modules)
I also tried to reference and import the sdk where I use it, but could not make things work. My attemps as below and errors that I got as following...
/// <reference path = "../../../node_modules/vss-web-extension-sdk/typings/index.d.ts/" />
Error : File '.../node_modules/vss-web-extension-sdk/typings/index.d.ts/' is not under 'rootDir' '.../src'. 'rootDir' is expected to contain all source files.ts(6059)
import "../../../node_modules/vss-web-extension-sdk"
Error: Module not found: Error: Can't resolve '../../../node_modules/vss-web-extension-sdk' in ...
import "vss-web-extension-sdk"
Error: Module not found: Error: Can't resolve 'vss-web-extension-sdk' in ...