meteor - Cannot find name 'console' -
i using angular2-meteor, typescript. (meteor version 1.3.2.4)
when use console.log('test');
on server side, working well.
however, got warning in terminal:
cannot find name 'console'.
how can rid of warning?
or there special method such meteor.log
server side? thanks
how can rid of warning?
if typescript compiler warning (and not runtime one) console
defined in lib.d.ts
: https://basarat.gitbooks.io/typescript/content/docs/types/lib.d.ts.html
make sure compiler setup correctly (e.g. doesn't have --nolib
or custom incorrect --lib
). might want @ tsconfig.json
's compileroptions
(if any)
Comments
Post a Comment