Looking-Glass / bridge.js

Bridge.js is a javascript API for interacting with Looking Glass displays via Looking Glass Bridge 2.2.0+
https://lookingglassfactory.com/software/looking-glass-bridge
MIT License
7 stars 0 forks source link

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

Open GesineMueller opened 6 months ago

GesineMueller commented 6 months ago

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 commented 6 months ago

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

BryanChrisBrown commented 6 months ago

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 commented 6 months ago

Hi Bryan,

Many thanks. I’ll test it tomorrow and let you know when it works.

Best, Gesine

On 22. Jan 2024, at 18:51, Bryan Brown @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/Looking-Glass/bridge.js/issues/17#issuecomment-1904512923, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWORA4OTJJYOFTALKF3SVMDYP2RKRAVCNFSM6AAAAABBLGGWISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBUGUYTEOJSGM. You are receiving this because you authored the thread.

BryanChrisBrown commented 5 months ago

Hey Gesine,

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

GesineMueller commented 4 months ago

Hey Bryan,

Thanks for catching up! I actually still haven’t been able to sent a quilt to the Display using the API. The idea would be to have a workflow to create a quilt from a microscopy image stack and then sent that in close to real-time to the Display. However, we don’t have an internet connection and I don’t want to manually use the test website. By using the typescript file I still receive this message: “Looking Glass Bridge is not running, please start Bridge and try again., even though bridge is running.

Can you point me to a solution?

Best, Gesine

On 22. Feb 2024, at 20:21, Bryan Brown @.***> wrote:

Hey Gesine,

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

— Reply to this email directly, view it on GitHub https://github.com/Looking-Glass/bridge.js/issues/17#issuecomment-1960100568, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWORA4JEXQ6G6WACJCHQICTYU6LB7AVCNFSM6AAAAABBLGGWISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQGEYDANJWHA. You are receiving this because you authored the thread.