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