vercel / ai-chatbot

A full-featured, hackable Next.js AI chatbot built by Vercel
https://chat.vercel.ai
Other
5.51k stars 1.62k forks source link

Cannot render UI #355

Closed MrMaina100 closed 1 month ago

MrMaina100 commented 1 month ago

was building something similar to this and using the code as reference but ran into an issue

         generate: async function* ({ limit, propertiesToSelect }) {
          yield <Spinner />;          
          return ()
        },

so basically when a user sends a message the spinner shows incase of a slow respond but when am trying to write code for the spinner I get this error .

Parsing error: '>' expected.eslint
'Spinner' refers to a value, but is being used as a type here. Did you mean 'typeof Spinner'?ts(2749)

pretty sure am doing the correct imports for spinner the component. Any help would be much appreciated

MrMaina100 commented 1 month ago

lol i had the file as .ts instead of .tsx