transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
https://agentic.so
MIT License
16.47k stars 2.15k forks source link

Uncaught TypeError: Class extends value [object Object] is not a constructor or null #499

Closed yuan442177 closed 1 year ago

yuan442177 commented 1 year ago

Verify latest release

Verify webapp is working

Environment details

node: 18.13.0 Vue3+vite edge

Describe the Bug

Uncaught TypeError: Class extends value [object Object] is not a constructor or null at node_modules/keyv/src/index.js (chatgpt.js?t=1679826427694&v=0104fa51:109:17) at __require2 (chunk-OZI5HTJH.js?v=0104fa51:15:50) at chatgpt.js?t=1679826427694&v=0104fa51:280:27

transitive-bullshit commented 1 year ago

It looks like you're trying to use this package from a non-node.js environment. Both edge and browser environments are not supported.

Either that or the prompt or response you're passing to sendMessage that's being stored into keyv is a class / object instead of a string.

Either way, I think Stack Overflow would be a better place to debug this issue.

yuan442177 commented 1 year ago

It looks like you're trying to use this package from a non-node.js environment. Both edge and browser environments are not supported.

Either that or the prompt or response you're passing to sendMessage that's being stored into keyv is a class / object instead of a string.

Either way, I think Stack Overflow would be a better place to debug this issue.

Thank you

HiroForYou commented 1 year ago

same issue, thanks :)