Skip to content

Issue importing hash function #12

Description

@Powersource

I'm using it installed from npm in the browser like

import { phash } from 'imagehash-web'

// ...

  const hash = await phash(img)

but my site fails to build (using vite) with

SES_UNCAUGHT_EXCEPTION: SyntaxError: The requested module 'http://localhost:8080/node_modules/.vite/deps/imagehash-web.js?v=6d181e42' doesn't provide an export named: 'phash'

Looking in this library's built files, the only mention of phash is one window.phash assignment which is strange

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