Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM library missing entry point #256

Open
Sir-Prise opened this issue Oct 31, 2023 · 0 comments
Open

WASM library missing entry point #256

Sir-Prise opened this issue Oct 31, 2023 · 0 comments
Labels

Comments

@Sir-Prise
Copy link

Sir-Prise commented Oct 31, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant