afeld / afeld/pose

fix built version of site

未关闭
#43 1 条评论 0 个 reaction 已指派 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 摘要。