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

Cannot find module './components' or its corresponding type declarations. #17

Open
GesineMueller opened this issue Jan 3, 2024 · 6 comments

Comments

@GesineMueller
Copy link

Hello,

I am working with a Looking Glas Portrait and have everything installed as it is described. I can connect to the Display and cast holograms using either the Looking Glas Studio or the website (https://bridge-js.vercel.app/). However, when trying to program it myself using the bridge.js and TypeScript, I get many errors linked to the bridge.js (as far as I understand, Images are attached). However, to automatically sent holograms to the display I need to use the bridge.js in my code.
Can you help me understand the problem?

I am using a Mac M1 in the latest update and have installed Node.js using the latest homebrew and typescript using npm. The I installed bridge via npm install @lookingglass/bridge. I also tried the yarn installation and I am using Visual Studio Code.

Many thanks!
Screenshot 2024-01-03 at 10 58 50
Screenshot 2024-01-03 at 10 59 06

@BryanChrisBrown
Copy link
Contributor

I believe this is due to the default settings for tsc only running a single file, rather than support libraries or multiple files.

@BryanChrisBrown
Copy link
Contributor

Hey Gesine! This should be updated in the latest version of the library, sorry about that bug! Turned out to be caused by an incorrect typescript setup.

@GesineMueller
Copy link
Author

GesineMueller commented Jan 22, 2024 via email

@BryanChrisBrown
Copy link
Contributor

Hey Gesine,

Just wanted to follow up here and see if this was resolved, are you hitting any other issues?

@GesineMueller
Copy link
Author

GesineMueller commented Mar 5, 2024 via email

@BryanChrisBrown
Copy link
Contributor

Hi Gesine,

Apologies for the delay here, are you using safari or a different web browser? Safari doesn't support the web socket connection we use with Bridge.

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