Coder Social home page Coder Social logo

Comments (17)

unstubbable avatar unstubbable commented on September 22, 2024 9

This issue has been fixed in React, and will be provided with the upcoming Next.js release. You can verify that in your repro with these commands:

npm add ai zod next@canary react@beta react-dom@beta --legacy-peer-deps
npm run build && npm start

Reference:

Related:

from ai.

unstubbable avatar unstubbable commented on September 22, 2024 1

Just looking in from the outside, it appears that the team is currently in the process of preparing the release of Next.js 15, which will include React 19. The aforementioned React fixes have been integrated here: vercel/next.js#65058

from ai.

unstubbable avatar unstubbable commented on September 22, 2024 1

I tested in my own app based on https://github.com/vercel/ai-chatbot where i'm using function_calling to call external APIs to get back a response. Does it have to be the repo above?

No, but if the update doesn't help your case it's possible that you have a different situation. In this case it might make sense to create a separate issue with your own minimal reproduction.

from ai.

armando-immunefi avatar armando-immunefi commented on September 22, 2024

confirming this on nextjs 14.2.3

from ai.

amithmkini avatar amithmkini commented on September 22, 2024

Same here. I should also add that nested streamable UIs were working in Next.js 14.1.3

from ai.

lionelrudaz avatar lionelrudaz commented on September 22, 2024

Same issue with AI 3.1.9 and Next 14.2.2.

My product is not yet on production, so that's OK, but that's bummer if you rely on this feature 😅

I hope there will be a fix soon. Let us know if we can provide more details.

from ai.

allenchuang avatar allenchuang commented on September 22, 2024

Same thing here... locally it works fine not sure what the issue is. If someone is willing to drop a hint I'd be welcome to help take a look

from ai.

allenchuang avatar allenchuang commented on September 22, 2024

Thank you so much! You're a hero 🫡

from ai.

lionelrudaz avatar lionelrudaz commented on September 22, 2024

Thanks @unstubbable, that's awesome. Can you point to the Next.js release that we'll have to upgrade to? Will it be 14.3.0 or a minor release of 14.2?

from ai.

allenchuang avatar allenchuang commented on September 22, 2024

hey @unstubbable i actually tested by upgrading to your suggested versions

npm add ai zod next@canary react@beta react-dom@beta --legacy-peer-deps
npm run build && npm start

however, this not only doesn't solve it, the issue now appears locally.. 🤔 any ideas here?

from ai.

unstubbable avatar unstubbable commented on September 22, 2024

Did you test it with https://github.com/amcclure-super/ai-streamableUI, or somewhere else?

from ai.

allenchuang avatar allenchuang commented on September 22, 2024

I tested in my own app based on https://github.com/vercel/ai-chatbot where i'm using function_calling to call external APIs to get back a response. Does it have to be the repo above?

from ai.

lionelrudaz avatar lionelrudaz commented on September 22, 2024

I'm still a bit confused with this one. Should we wait for Next.js 15 to be released or is there a suitable workaround for this? It's still in the docs, so it's supposedly supported, right?

from ai.

lionelrudaz avatar lionelrudaz commented on September 22, 2024

OK so it seems to work on AI SDK 3.1.x. But when you upgrade to 3.2.x, it breaks again.

Any ideas how we can fix that? That's quite annoying as it's in the docs, it's working fine locally and breaks only when deploying to production...

from ai.

amcclure-super avatar amcclure-super commented on September 22, 2024

Are you running next release candidate @lionelrudaz ? 3.2.x is working for me in production

from ai.

lionelrudaz avatar lionelrudaz commented on September 22, 2024

Hey @amcclure-super, no I'm using Next 14.2.4. I had to specify this version as it was working with it.

What's your Next version?

from ai.

lionelrudaz avatar lionelrudaz commented on September 22, 2024

I'm trying to upgrade to 3.3.3, and I still have exactly the same issue. Upgraded to Next 14.2.5, still the same.

You can see it live on my test server: https://release.tasters.ch/

Tell me if you need me to share some pieces of code.

from ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.