-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find package 'stream' #2412
Comments
I think that import statement is coming from
This doesn't seem to have broken because of a kit upgrade, but because of winston0410/portfolio-2021@859ead8#diff-4b5e57f6eb2f42b9039b3d1e13929295f231749c510cbe341cd68036d9af97e2 |
It's because you added a dependency on |
@benmccann Yes I have added in And I think I got that error after I have added in a wrapped fetch to my code, but it looks alright to me? It should pick up // index.ts
var createWrapped = (f) => {
f = f ? f : fetch;
return async (url, opts) => {
const res = await f(url, opts);
return {
ok: res.ok,
status: res.status,
body: await res.json()
};
};
};
var git_clone_aa4ce5db_default = createWrapped;
export {
git_clone_aa4ce5db_default as default
}; |
I hope this will solve the issue. Thank you for your time for helping me out. |
You must set |
I found a decent work-around since updating Kit wasn't working for me. Downgrading to version 2.6.5 of
|
I got fixes into |
Updated, still seeing
when |
This sounds like a duplicate of #2523. Let's track it there |
fwiw, i had a similar error message while accidentally using an old version of node. if you find this page by googling "Cannot find package 'stream' " with sveltekit, that's something you may want to check. |
I can support @jckr's advice. Was using node version 14 when I got this error. |
I ran into this too. Upgrading to 16 worked, but unfortunately, that really complicates my setup, as I have other things that require Node 14. |
kit requires node 16 Line 97 in 21d9725
|
Using multiple node versions is easy with nvm: https://github.com/nvm-sh/nvm |
i had the same issue, my node version is 16.13.0 |
solved by this octokit/octokit.js#2126 (comment) |
Describe the bug
This happens after the latest update for kit. I got the following error with
npm run build
:Reproduction
Clone my repo here: https://github.com/winston0410/portfolio-2021
cd ./web
npm install
npm run build
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
I got the same error on both local and vercel.
The text was updated successfully, but these errors were encountered: