visual studio - Why is typescript telling me "Cannot compile external modules unless the --module flag is provided? -


i getting typescript error message indicated in title above. included here 1 example of doesn't like... if click on error message takes me in iglobals definition below.

export interface iglobals {     homepageurl: string;     loginpageurl: string;     timeout: number;     changed(url: string) } 

i using vs2013 these settings. no matter value choose "module system" still error. i'm running version 1.5.0 beta of typescript (which issue, not sure)...

enter image description here

wrap code in module...

module mymodule{     export interface iglobals {         homepageurl: string;         loginpageurl: string;         timeout: number;         changed(url: string)     } } 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -