Skip to content

Issue importing hash function #12

@Powersource

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

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