Giter Site home page Giter Site logo

Comments (7)

conroywhitney avatar conroywhitney commented on June 11, 2024 1

@MaxLeiter @shuding -- is this related to #1094? I'm getting a [email protected] error hitting the deploy button (even with default framework set to Vercel). I tried re-deploying, as well as making random edits (to force a new deploy).

My solution was to clone the created github repo, run pnpm i, and push the new pnpm-lock.yaml

Deploy button

Screenshot 2024-03-04 at 10 40 08 PM

Redeploying in Vercel

Screenshot 2024-03-04 at 11 02 24 PM

After updating pnpm-lock.yaml

Screenshot 2024-03-04 at 11 15 13 PM
Screenshot 2024-03-04 at 11 15 48 PM

from ai.

rikhuijzer avatar rikhuijzer commented on June 11, 2024

The error was fixed by running npm update and committing the package-lock.json. Still 404 though.

from ai.

rikhuijzer avatar rikhuijzer commented on June 11, 2024

Ah fixed the 404 too. The problem was that the aforementioned deploy button doesn't automatically set the build system to Next.js. I manually set the "Framework preset" to "Next.js" and now the build succeeded.

So my problems are fixed, but I'll leave this issue open since the example doesn't work out of the box.

from ai.

conroywhitney avatar conroywhitney commented on June 11, 2024

🙌 fix'd

from ai.

rikhuijzer avatar rikhuijzer commented on June 11, 2024

Ah fixed the 404 too. The problem was that the aforementioned deploy button doesn't automatically set the build system to Next.js. I manually set the "Framework preset" to "Next.js" and now the build succeeded.

So my problems are fixed, but I'll leave this issue open since the example doesn't work out of the box.

🙌 fix'd

I just tested, @conroywhitney. The build still generates a 404 page when clicking the deploy button. "Framework preset" is again on "Other" while it should be on "Next.js"

from ai.

conroywhitney avatar conroywhitney commented on June 11, 2024

@rikhuijzer -- weird. I wonder if there's some account settings difference...

What happens if you set &framework=nextjs in the "Deploy on Vercel" link? Could you try this one out?

https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Fblob%2Fmain%2Fexamples%2Fnext-ai-rsc&env=OPENAI_API_KEY&envDescription=OpenAI%20API%20Key&envLink=https%3A%2F%2Fplatform.openai.com%2Fapi-keys&framework=nextjs

from ai.

rikhuijzer avatar rikhuijzer commented on June 11, 2024

I've tried Firefox and Edge both with a private GitLab repository and your new link. My "Framework Preset" is still "Other" after creating a new project when using that link resulting in a 404 page. The account was made new last week and is using email login. The account email is <MY_FIRST_NAME>.<MY_LAST_NAME>@gmail.com.

I guess if you make a new free account for yourself and the button works there, then all is good. Then maybe indeed my account has some incorrect setting somehow (even though I didn't change anything as far as I remember. I just pressed the deploy button).

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.