You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using version 9 and calling serve with just a callback to use the default path, I get the following error:
/home/tyilo/tmp/node-ipc-test/node_modules/@achrinza/node-ipc/services/IPC.js:111
this.log(
^
TypeError: Cannot read properties of undefined (reading 'log')
at serve (/home/tyilo/tmp/node-ipc-test/node_modules/@achrinza/node-ipc/services/IPC.js:111:14)
at Object.<anonymous> (/home/tyilo/tmp/node-ipc-test/index.js:4:1)
at Module._compile (node:internal/modules/cjs/loader:1246:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1300:10)
at Module.load (node:internal/modules/cjs/loader:1103:32)
at Module._load (node:internal/modules/cjs/loader:942:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
Node.js v19.6.0
Steps to reproduce:
$ mkdir node-ipc-test
$ cd node-ipc-test
$ npm init
...
$ npm add @achrinza/node-ipc@9
$ cat > index.js
const ipc = require("@achrinza/node-ipc");
const {serve} = ipc;
serve(() => {
console.log("Serving");
});
^D
$ node index.js
/home/tyilo/tmp/node-ipc-test/node_modules/@achrinza/node-ipc/services/IPC.js:111
this.log(
^
TypeError: Cannot read properties of undefined (reading 'log')
at serve (/home/tyilo/tmp/node-ipc-test/node_modules/@achrinza/node-ipc/services/IPC.js:111:14)
at Object.<anonymous> (/home/tyilo/tmp/node-ipc-test/index.js:4:1)
at Module._compile (node:internal/modules/cjs/loader:1246:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1300:10)
at Module.load (node:internal/modules/cjs/loader:1103:32)
at Module._load (node:internal/modules/cjs/loader:942:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
Node.js v19.6.0
The text was updated successfully, but these errors were encountered:
When using version 9 and calling
serve
with just a callback to use the default path, I get the following error:Steps to reproduce:
The text was updated successfully, but these errors were encountered: