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

Getting error with makeEmptyResponseShape #19

Open
schandra09net opened this issue Jan 13, 2024 · 0 comments
Open

Getting error with makeEmptyResponseShape #19

schandra09net opened this issue Jan 13, 2024 · 0 comments

Comments

@schandra09net
Copy link

schandra09net commented Jan 13, 2024

Steps:

  1. Cloned the repo,
  2. Inserted the GPT-4 API key (with a valid subscription)
  3. yarn install
  4. yarn run dev

Error:
assert<@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/utils/src/lib/control.ts:17:13
wrappedFn@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/utils/src/lib/function.ts:16:14
getShapeUtil@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/Editor.ts:545:11
do@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/Editor.ts:5034:29
createCommand/exec/<@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:40:16
@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:102:44
transact@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/state/src/lib/core/transactions.ts:120:12
ignoringUpdates@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:102:27
exec@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:39:12
createCommand/exec/<@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:31:30
batch/<@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:79:11
transaction@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/state/src/lib/core/transactions.ts:104:22
transact@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/state/src/lib/core/transactions.ts:122:10
batch@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:77:17
exec@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:31:14
createShape@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/Editor.ts:4936:10
makeEmptyResponseShape@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/tldraw/src/lib/ui/makeReal.tsx?t=1705134476101:105:10
makeReal@http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/tldraw/src/lib/ui/makeReal.tsx?t=1705134476101:38:49

Versions:
ubuntu@ubuntu-2204:~/source/tldraw$ node -v && npm -v && yarn -v
v21.5.0
10.2.4
6.5.0

OS:
ubuntu@ubuntu-2204:~/source/tldraw$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

Screenshot:
image

With Chrome debugging got this error:
Error: No shape util found for type "response"
at Editor.getShapeUtil (/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/Editor.ts:763:3)
at Object.do (/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/Editor.ts:6610:24)
at /home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:68:12
at /home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:151:40
at transact (/home/ubuntu/source/tldraw/packages/state/src/lib/core/transactions.ts:248:10)
at HistoryManager.ignoringUpdates (/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:151:25)
at exec (/home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:67:9)
at /home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:55:22
at /home/ubuntu/source/tldraw/packages/editor/src/lib/editor/managers/HistoryManager.ts:121:6
at transaction (http://localhost:5420/@fs/home/ubuntu/source/tldraw/packages/state/src/lib/core/transactions.ts:104:20) {stack: 'Error: No shape util found for type "response…es/state/src/lib/core/transactions.ts:104:20)', message: 'No shape util found for type "response"'}

Please let me know how to solve this issue.

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