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

Doesn't work in the browser #343

Open
maelp opened this issue Oct 17, 2024 · 4 comments
Open

Doesn't work in the browser #343

maelp opened this issue Oct 17, 2024 · 4 comments

Comments

@maelp
Copy link

maelp commented Oct 17, 2024

When trying to import a lib which itself uses noble from a Vue app, I get this error

CleanShot 2024-10-18 at 01 10 20@2x

@maelp
Copy link
Author

maelp commented Oct 17, 2024

it seems one of the dependencies of noble is looking for the process variable which doesn't exist when using Vite (we need import.meta.env)

@BFjacky
Copy link

BFjacky commented Nov 14, 2024

This package is not for browser environment . Should only be used in Node.js. "Process" is one of core module of NODE.JS

@maelp
Copy link
Author

maelp commented Nov 14, 2024

Hmmmm it's too bad that it implements a wrapper for Webbluetooth but wouldn't be available in browsers no?

@maelp
Copy link
Author

maelp commented Nov 14, 2024

If using vite you could just use meta rather than process to access ENV variable both in Node and browser

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

No branches or pull requests

2 participants