我正在尝试使用 Typescript 在 Meteor 中使用
meteortypescript:compiler
和 practicalmeteor:mocha
创建一个简单的测试。当我的文件名为 Foo_test.js
时,下面的代码可以正常工作。当我命名它 Foo_test.ts
时,我收到错误:
import {Meteor} from 'meteor/meteor';
import {Random} from 'meteor/random';
// With typescript, the line below gives:
// Cannot find module 'meteor/practicalmeteor:chai'
// Without typescript, there are no errors
import { assert } from 'meteor/practicalmeteor:chai';
为什么我在使用 Typescript 时看到错误,我该如何修复它?