afeld / afeld/pose

fix built version of site

Abierto
#43 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
3
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.