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

Should be better message: TypeError: Cannot read properties of undefined (reading 'isAddressable') #1041

Open
linonetwo opened this issue Aug 14, 2023 · 0 comments

Comments

@linonetwo
Copy link
Contributor

截屏2023-08-14 15 50 34

I misspeel the port name

    this.inPorts.add('cpu_count', {
      datatype: 'number',
      description: 'Number of CPU cores to use',
      required: true,
      default: 4,
    });
const cpuCount = input.getData('cpuCount') as number || 4;

And it throws

useRunGraph.ts:20 TypeError: Cannot read properties of undefined (reading 'isAddressable')
    at ProcessInput.get (ProcessInput.js:239:1)
    at eval (ProcessInput.js:334:41)
    at Array.forEach (<anonymous>)
    at ProcessInput.getData (ProcessInput.js:333:1)
    at LLaMaChat.eval [as handle] (Llama.ts:38:30)
    at LLaMaChat.handleIP (Component.js:517:1)
    at InPort.eval (Component.js:374:1)
    at InPort.emit (events.js:153:1)
    at InPort.handleIP (InPort.js:76:1)
    at InternalSocket.eval (InPort.js:52:1)
    at InternalSocket.emit (events.js:158:1)
    at InternalSocket.debugEmitEvent (InternalSocket.js:61:1)
    at InternalSocket.handleSocketEvent (InternalSocket.js:279:1)
    at InternalSocket.post (InternalSocket.js:165:1)
    at eval (BaseNetwork.js:880:1)
    at async runGraph (useRunGraph.ts:26:5)

This could have been "Port cpuCount not exist, did you mean cpu_count?`

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

1 participant