Closed leonardocavagnis closed 4 days ago
Oh, yes seems we forhot to adjust package.jsons after renaming some examples. fix comes
I switched on branch https://github.com/project-chip/matter.js/tree/load-descriptor-before-add, but issue persists :(
@ examples % npm run matter-device
> @matter/examples@0.0.0-git matter-device
> matter-run src/examples/device-onoff/DeviceNode.ts
node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module '/Users/leonardocavagnis/Desktop/matter.js/packages/examples/dist/esm/examples/device-onoff/DeviceNode.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.17.0
npm error Lifecycle script `matter-device` failed with error:
npm error code 1
npm error path /Users/leonardocavagnis/Desktop/matter.js/packages/examples
npm error workspace @matter/examples@0.0.0-git
npm error location /Users/leonardocavagnis/Desktop/matter.js/packages/examples
npm error command failed
npm error command sh -c matter-run src/examples/device-onoff/DeviceNode.ts
grmppff ... forgot to push a last commit ... please pull branch ...
@Apollon77 it works like a charm! thanks
Problem description: Running
npm run matter-device
on macOS results in aMODULE_NOT_FOUND
error.To reproduce:
Operating System: macOS Sonoma 14.6.1 (MacBook Pro 2023 - Apple M2 Pro)