Closed jerriclynsjohn closed 1 year ago
Having the same issue
if you're deploying to vercel, override the install step with this npm i -f
to get it working.. for now
I'm also experincing this during builds. My project that doesn't use Svelte.
Does anybody have a solution for this? Whenever I add a new package I got this error and the package won't install. I'm using ^2.1.13
and tried npm i -f
too
With npm i -f
I can make it work locally, but not when deploying with Vercel. Overriding the install command doesn't help:
From what I see in the Vercel deploy logs, there are two rounds of npm installs—the first one uses the overridden command with -f
flag and goes through, but the second one uses plain npm install
and fails.
FYI: Just tested that yarn
lets this one slide. If you're in a hurry, switching to yarn
should do.
Seeing the same issue since v2.1.10. NextJS app, but seeing svelte related errors.
Same. Any version after 2.1.9 gives me this error. If i force, it installs but does not stream.
er 2.1.9 gives me this error. If i force, it installs but does not stream.
With
npm i -f
I can make it work locally, but not when deploying with Vercel. Overriding the install command doesn't help:From what I see in the Vercel deploy logs, there are two rounds of npm installs—the first one uses the overridden command with
-f
flag and goes through, but the second one uses plainnpm install
and fails.
Your command should've been npm install --force
or npm i -f
instead of npm i -force
.
I switched to yarn quickly. It's a workaround in the meanwhile.
node_modules
folder.package-lock.json
.npm install --global yarn
yarn install
to reinstall.yarn install
.I believe this is a bug with npm and not respecting the optional peer dependencies fields. I've pushed a temporary fix that should resolve this, but I recommend you use pnpm
.
5. vercel
I did using yarn instead of npm, it can pass the building phase, but when I request to steaming methods, it shows the error message at my console: Failed to load resource: the server responded with a status of 405 ()
and 926-d92de8ec4d18b2f9.js:15 Uncaught (in promise) Error: Failed to fetch the chat response.
I got this issue to and I don't use svelte
I got this issue to and I don't use svelte
Could you please provide a clearer explanation of how you solve this problem without using Svelte?
I got this issue to and I don't use svelte
Could you please provide a clearer explanation of how you solve this problem without using Svelte?
I don't know how to solve it, I'm just using next only.
I just solved this issue.
Following the suggestion up there, using yarn install
instead of npm..., then it works!
Build breaks at the installation of the package itself, here are the logs from Vercel
Repo to reproduce the error: https://github.com/tierrun/tier-vercel-openai
I'm able to make it work using
npm i -f