mattpeng

Results 7 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!

@fabian-hiller here's the [reproduction](https://stackblitz.com/edit/modular-forms-qwik-u3rcrr?file=src%2Froutes%2F(default)%2Ftodos%2Findex.tsx). by clicking the submit button, this error shows up: ![image](https://github.com/user-attachments/assets/968752f1-5d2d-4536-883d-a43facbbb6f5)

@fabian-hiller maybe this could help: https://dev.to/scooperdev/supporting-circularly-referenced-mapped-types-in-typescript-4825