0
我已经使用npm
安装了它。我已经将它添加到我的依赖关系aurelia.json
:如何在Aurelia项目中包含Typed.js
"dependencies": [
// ...
{
"name": "typed",
"path": "../node_modules/typed.js/src"
}
]
而且我已经导入到我的文件,像这样:
import Typed from 'typed';
然而,当我试图把它var typed = new Typed(...);
我得到一个Typed is not defined
例外。 According to their docs事情应该很简单,所以我不知道我做错了什么。
您是使用TypeScript还是ES编程? –
@AshleyGrant ES – Alternatex