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

Build Error on latest version - Module not found: Error: Can't resolve '#buttplug_rs_ffi_bg' #93

Open
myhubiuser1 opened this issue Apr 17, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@myhubiuser1
Copy link

myhubiuser1 commented Apr 17, 2022

Describe the bug
When trying to upgrade Buttplug NPM library from 1.0.14 to latest (1.0.17) I'm getting the following error when building the JS library:
Error: ./node_modules/buttplug/dist/module/buttplug-rs-ffi/buttplug_rs_ffi_bg.js
Module not found: Error: Can't resolve '#buttplug_rs_ffi_bg' in '/Users/ME/Documents/Funscript-Player/node_modules/buttplug/dist/module/buttplug-rs-ffi'
The library works from 1.0.10 up to 1.0.14

Expected behavior
Build to pass and run local server as older versions does.

Actual behavior
Build fails with error:
Error: ./node_modules/buttplug/dist/module/buttplug-rs-ffi/buttplug_rs_ffi_bg.js
Module not found: Error: Can't resolve '#buttplug_rs_ffi_bg' in '/Users/ME/Documents/Funscript-Player/node_modules/buttplug/dist/module/buttplug-rs-ffi'

Additional context
Trying to make Funscript-player work with lovense toys - fork can be found here - https://github.com/myhubiuser1/Funscript-Player

@myhubiuser1 myhubiuser1 added the bug Something isn't working label Apr 17, 2022
@shogunsho2
Copy link

I think it is probably some error with the build pipeline. i managed to get it working by modifiying

node_modules/dist/module/buttplug-rs-ffi/buttplug_rs_ffi.js to:

export * from "./buttplug_rs_ffi_bg_web";

instead of

export * from "#buttplug_rs_ffi_bg";

then i could at least run locally and test things out

@myhubiuser1
Copy link
Author

Yup, that worked for me as well but definitely cannot do a proper build with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants