afeld / afeld/pose

fix built version of site

オープン
#43 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
3
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

Getting

```
Uncaught ReferenceError: $670d1da690979442$exports is not defined at initializers.ts:35:43
```

when [`import`ing from the NPM package](https://www.tensorflow.org/js/tutorials/setup#installation_from_npm). Was previously solved in e0e3bb0c28510be04dc3db2729ced8dbc7dff3e5 by [loading Tensorflow from a CDN](https://www.tensorflow.org/js/tutorials/setup#usage_via_script_tag), but that:

- Requires a network connection
- Loses type definitions
- Doing version management outside of NPM

```js
import * as tf from "@tensorflow/tfjs/dist/tf";
```

works, but loses the type definitions. Can test locally with:

```sh
npm run clean
npm run build
cd dist
python3 -m http.server
```

and opening http://localhost:8000.

- [ ] [Turn deploy previews back on](https://app.netlify.com/sites/afeld-pose/settings/deploys#deploy-notifications)
- [ ] Re-add https://afeld-pose.netlify.app/ to repository description

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。