mattpeng

Results 5 comments of mattpeng

When `process.env.NODE_ENV` is not set to `production`, styled-components attempts to modify `console.error`, leading to the `Error: "error" is read-only` error. If you're using vite to bundle the content script, a...

I bundle my content script with vite, so my current workaround is: ```typescript // vite.config.json export default defineConfig({ define: { 'process.env.NODE_ENV': JSON.stringify('production'), }, // ...rest options }); ```

@ravvi-kumar do you know how to map the response of `openai.beta.threads.messages.list` to the `useAssistant` hook's `messages` properly? ```tsx const { setMessages } = useAssistant({ // ... }) useEffect(() => {...

Facing the same issue here. @whytspace thank you for the workaround!