afeld / afeld/pose

fix built version of site

Offen
#43 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
3
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.