Skip to content

fix built version of site #43

Description

@afeld

Getting

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

when importing from the NPM package. Was previously solved in e0e3bb0 by loading Tensorflow from a CDN, but that:

  • Requires a network connection
  • Loses type definitions
  • Doing version management outside of NPM
import * as tf from "@tensorflow/tfjs/dist/tf";

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

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

and opening http://localhost:8000.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions