fivetran / typescript-closure-tools

62 stars 11 forks source link

Problem on Setup #2

Closed Mike-E-angelo closed 10 years ago

Mike-E-angelo commented 10 years ago

Hello,

In your setup instructions, you mention the following line:

"tsc --module commonjs src/*.ts"

However, when I do this, I get the following error in my Node.js console: error TS5007: Cannot resolve referenced file: 'src/*.ts'.

Looking online, I found this: https://typescript.codeplex.com/workitem/505

Is there something obvious I am missing?

georgewfraser commented 10 years ago

That's a bash command. You need to execute tsc --module commonjs src/*.ts without quoting anything.

Mike-E-angelo commented 10 years ago

Ah, ok... bash. Opened up a Git Bash command prompt and executed that. I got further. Now I get this:

C:/Users/--/Documents/GitHub/closure-definitions/index/node.d.ts(1,1): erro r TS1008: Unexpected token; 'module, class, interface, enum, import or statement ' expected. C:/Users/--/Documents/GitHub/closure-definitions/index/node.d.ts(1,2): erro r TS1008: Unexpected token; 'module, class, interface, enum, import or statement ' expected. C:/Users/--/Documents/GitHub/closure-definitions/index/esprima.d.ts(1,1): e rror TS1008: Unexpected token; 'module, class, interface, enum, import or statem ent' expected. C:/Users/--/Documents/GitHub/closure-definitions/index/esprima.d.ts(1,2): e rror TS1008: Unexpected token; 'module, class, interface, enum, import or statem ent' expected. C:/Users/--/Documents/GitHub/closure-definitions/index/mkdirp.d.ts(1,1): er ror TS1008: Unexpected token; 'module, class, interface, enum, import or stateme nt' expected. C:/Users/--/Documents/GitHub/closure-definitions/index/mkdirp.d.ts(1,2): er ror TS1008: Unexpected token; 'module, class, interface, enum, import or stateme nt' expected. C:/Users/--/Documents/GitHub/closure-definitions/index/colors.d.ts(1,1): er ror TS1008: Unexpected token; 'module, class, interface, enum, import or stateme nt' expected. C:/Users/--/Documents/GitHub/closure-definitions/index/colors.d.ts(1,2): er ror TS1008: Unexpected token; 'module, class, interface, enum, import or stateme nt' expected.

georgewfraser commented 10 years ago

There's no syntax errors in these files. I don't know whether using git bash on windows to run tsc is a good idea. I am guessing you are unfamiliar with running tsc from the command line.