I’m trying to use the barbatus:typescript package with Meteor 1.7. However, even before converting any files from .js to .ts, I’m running into a problem where Meteor’s global imports (Session, Accounts, Mongo, etc.) sometimes fail, and also imports of Atmosphere packages sometimes fail.
For example, importing
meteor:reactive-dict fails with
Cannot find module 'meteor/reactive-dict'. Strangely, I can import
meteor:session, but the package returns an empty object
This fails in both .js and .ts files. I’ve installed
@types/meteor from NPM. I’m not sure what’s wrong.
Has anyone gotten Meteor 1.7 working with TypeScript? I also can’t find any working examples.