Typescript - Trouble importing types for meteor packages in VSCode

In VSCode, I’m having trouble including the types for meteor packages where the type definitions are in the DefinatelyTyped @types scope. Meteor compiles fine.

I see errors such as:
Cannot find module 'meteor/mdg:validated-method' or its corresponding type declarations.

Same for meteor/universe:i18n.

One solution is to put the reference path at the top of the file …
/// <reference path="../../../node_modules/@types/meteor-mdg-validated-method/index.d.ts" />

But I’d prefer not to do this for every import.

Is this a config issue? Any help would be greatly appreciated.

1 Like

OK, I’ve just realised that you only need to include the reference path once in any file, so that makes things better.