Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
117
rated 0 times [  119] [ 2]  / answers: 1 / hits: 48697  / 11 Years ago, sat, august 17, 2013, 12:00:00

I am trying compile this typescript file:



import http = module(http);
import express = module(express);


With these parameters:



C:/nodejs/tsc.cmd --sourcemap cheese.ts --module commonjs
C:/User/Node/ExpressProject/cheese.ts(5,21): error TS1005: ';' expected.
C:/User/Node/ExpressProject/cheese.ts(6,24): error TS1005: ';' expected.


What am I doing wrong? Even with this, I am getting the same errors errors:



module http {}
module express {}

import http = module(http);
import express = module(express);


Using Typescript version 0.9.1


More From » node.js

 Answers
35

The syntax in 0.9.1 is now import mod = require('modname');


[#76302] Thursday, August 15, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jimmieo

Total Points: 515
Total Questions: 102
Total Answers: 110

Location: Kazakhstan
Member since Mon, Sep 26, 2022
2 Years ago
;