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
⨯ Error: you must `import '@anthropic-ai/sdk/shims/web'` before importing anything else from @anthropic-ai/sdk
at c (.next/server/chunks/59790.js:1:46337)
at 605046 (.next/server/chunks/59790.js:2:5651)
at t (.next/server/webpack-runtime.js:1:143)
at 640279 (.next/server/chunks/87253.js:214:6072)
at t (.next/server/webpack-runtime.js:1:143)
at 702947 (.next/server/chunks/87253.js:230:77104)
at t (.next/server/webpack-runtime.js:1:143)
at 778403 (.next/server/chunks/87253.js:174:3342)
at Object.t [as require] (.next/server/webpack-runtime.js:1:143) {
digest: '1965366038'
}
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered:
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Hey there, @bentwnghk! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together while we wait for a human maintainer.
To resolve the error you're encountering, ensure that the import statement for @anthropic-ai/sdk/shims/web is placed at the very top of your import statements in your code. Here's the correct order:
📦 Environment
Docker
📌 Version
v1.44.3
💻 Operating System
Ubuntu
🌐 Browser
Chrome
🐛 Bug Description
Docker log:
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: