Skip to content

Instantly share code, notes, and snippets.

@vassilyl

vassilyl/main.ts Secret

Last active October 12, 2018 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vassilyl/1dd306b251baf9e0005919b21ca82367 to your computer and use it in GitHub Desktop.
Save vassilyl/1dd306b251baf9e0005919b21ca82367 to your computer and use it in GitHub Desktop.
vss sdk issue repro
export const version = 0
{
"name": "repro",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"vss-web-extension-sdk": "^5.141.0"
}
}
{
"compilerOptions": {
"module": "amd",
"moduleResolution": "node",
"target": "es5",
"rootDir": "src/",
"outDir": "dist/",
"types": [
"vss-web-extension-sdk"
]
}
}
@vassilyl
Copy link
Author

vassilyl commented Oct 12, 2018

The main.ts file shall be in src subdirectory.

>npx typescript@2 -v
npx: installed 1 in 5.498s
Version 2.9.2

>npx typescript@2 -p .
npx: installed 1 in 11.489s

>npx typescript@3 -v
npx: installed 1 in 6.072s
Version 3.1.3

>npx typescript@3 -p .
npx: installed 1 in 5.928s
../../../Users/vassilyl/AppData/Roaming/npm-cache/_npx/18096/node_modules/typescript/lib/lib.dom.d.ts:12171:11 - error TS2320: Interface 'SVGElement' cannot simultaneously extend types 'Element' and 'SVGElementInstance'.
  Named property 'nodeType' of types 'Element' and 'SVGElementInstance' are not identical.

12171 interface SVGElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, SVGElementInstance, HTMLOrSVGElement, ElementCSSInlineStyle {
                ~~~~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment