Typescript compiler 1.0RC gives Unable to get value of the property 'toLowerCase'

StackOverflow https://stackoverflow.com/questions/22118601

  •  18-10-2022
  •  | 
  •  

سؤال

I just tried to compile a 0.9 ts project with the ts 1.0 exe but get this when my file watcher is run:

"C:/Program Files (x86)/Microsoft SDKs/TypeScript/tsc.exe" --sourcemap Common.ts --module tsc.js(55958, 21) Microsoft JScript runtime error: Unable to get value of the property 'toLowerCase': object is null or undefined

The exe is defined where the visual studio plugin installed it, maybe I need to use the node one instead? but when I point the file watcher to the node version is complains that its not an .exe

هل كانت مفيدة؟

المحلول

You are using the --module flag but not specifying a module type (hence undefined). Use --module commonjs

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top