Skip to content

WASM library missing entry point #256

@Sir-Prise

Description

@Sir-Prise

I'm trying to use buttplug-wasm, but I think the library is missing an entry point in the package.json ("exports"), because I only got it to work with a deep import like this:

// @ts-ignore
import { ButtplugWasmClientConnector } from 'buttplug-wasm/dist/buttplug-wasm.mjs';

Without the ts-ignore there's also an error message from TypeScript (but it works nonetheless):

error TS2307: Cannot find module 'buttplug-wasm/dist/buttplug-wasm.mjs'.

By the way, I was also trying to use the wasm-library from cdn to save bandwith, but that was unsuccessful so far in TypeScript for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions