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

Bridged Devices not found #767

Closed
louisvangeldrop opened this issue Mar 26, 2024 · 10 comments · Fixed by #773
Closed

Bridged Devices not found #767

louisvangeldrop opened this issue Mar 26, 2024 · 10 comments · Fixed by #773
Labels
question Further information is requested

Comments

@louisvangeldrop
Copy link

BridgedDevicesNode is not found. ...src/examples/BridgedDeviceNode.ts

@Apollon77
Copy link
Collaborator

Can you please be a bit more specific? Is this a link in the dodcs you mention or what?

@Apollon77 Apollon77 added the question Further information is requested label Mar 26, 2024
@louisvangeldrop
Copy link
Author

Sorry for the missing information:

npm run matter-bridge -- -type socket -num 2 -on1 "echo on1" -off1 "echo off1" -type2 socket -on2 "echo on2" -off2 "echo off2"

matter-run packages/matter-node.js-examples/src/examples/BridgedDevicesNode.ts -type socket -num 2 -on1 echo on1 -off1 echo off1 -type2 socket -on2 echo on2 -off2 echo off2

node:internal/modules/cjs/loader:1145
throw err;
^

Error: Cannot find module 'C:\Users\louis\projecten\matter.js\packages\matter-node.js-examples\dist\esm\examples\BridgedDevicesNode.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
at Module._load (node:internal/modules/cjs/loader:983:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

@Apollon77
Copy link
Collaborator

Hm ... which version you use?

How you installed it?

@louisvangeldrop
Copy link
Author

packages\matter-node.js-examples\package.json contains the line:
"matter-bridge": "matter-run src/examples/BridgedDevicesNode.ts",

while the actual filename is: src/examples/BridgedDeviceNode.ts. without an "s"

@louisvangeldrop
Copy link
Author

Version 0.8.0-alpha.0-20240328-f7f45db5. Installed with the command: npm install

@Apollon77
Copy link
Collaborator

Thank you, I will provide a fix for the next nightly!

@Apollon77
Copy link
Collaborator

I rrenamed the JS file as expected ... there should be a new nightly, please try

@louisvangeldrop
Copy link
Author

It is working now. THX for the quick response.
My compliments for this great project !!!

@louisvangeldrop
Copy link
Author

I am using the matter-bridge in order to connect an ESP32- running moddable javascript temperature/humidity sensor.

@Apollon77
Copy link
Collaborator

Apollon77 commented Mar 28, 2024

Oohhh interesting ... and yes ... moddable project is awesome!

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

Successfully merging a pull request may close this issue.

2 participants