Cannot load external module when trying to import i18next in TypeScript
问题 One reason why I can't import i18next is because the i18next.d.ts file does not have declare module "i18next" { export = i18next; } at the end, like jquery.d.ts and knockout.d.ts have. It only has declare var i18next: I18nextStatic; So when I tried to import in my TypeScript file using import i18next = require('i18next'); it will barf: Cannot load external module Module cannot be aliased to a non-module type I don't know why Definitely Typed project compose the d.ts file in that way. And I