You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unknown compiler option 'typeroots'. (5023)
at load (C:\Users\cristianmitroi\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:199:13)
at service (C:\Users\cristianmitroi\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:363:32)
at Object.register (C:\Users\cristianmitroi\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:372:5)
at Object.<anonymous> (C:\Users\cristianmitroi\AppData\Roaming\npm\node_modules\ts-node\src\_bin.ts:148:17)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)
Windows 7, x64
ts-node --version
ts-node v2.0.0
node v6.2.0
tsconfig:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": false,
"sourceMap": false,
"types": [
// add node as an option
"node"
],
// typeroots option has been previously configured
"typeroots": [
// add path to @types
"../node_modules/@types"
]
}
}
Activity
blakeembrey commentedon Jul 21, 2016
TypeScript 2.0 is still in beta, so it's hard to know. I believe support was probably added with 240d4b9 but if you can confirm that would help.
filipesilva commentedon Jul 22, 2016
@blakeembrey just tested and it does work, cheers!
cristianmtr commentedon Jan 20, 2017
This doesn't work for me.
blakeembrey commentedon Jan 20, 2017
Try with a capital R. When in doubt, please try
tscdirectly to confirm if it should work.