-
Notifications
You must be signed in to change notification settings - Fork 150
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
Treat fs-extra
as an alias to fs
/ node:fs
#293
Comments
type: module
to site and to monorepo root and use ESM in scripts
blockprotocol/blockprotocol#322
Generally, this is already handled by Will path.join() work for your use case? |
👋 @styfle! Interesting! Is there any way to use glob
.sync(`${process.cwd()}/public/blocks/**/block-metadata.json`)
.map((path: string): ExpandedBlockMetadata => { fs.readFileSync(path); }) UPD: Using It’d be still nice to support |
It would be helpful if you can share a case that works with fs, but not fs-extra |
I created a new test case in #296. I wanted to work on the issue locally, but could not do
Might be related to my M1 mac and ranisalt/node-argon2#305. I tried Node 14, 16 and 18, but no luck so far. Happy to dig into this |
- Fixes #293 Co-authored-by: Steven <steven@ceriously.com>
- Fixes vercel/nft#293 Co-authored-by: Steven <steven@ceriously.com>
I switched from plain
fs
tofs-extra
in a project that uses Next.js and Vercel. After doing so I noticed that some Vercel lambdas ‘lost’ local files, which was really strange. The only solution I found was switching back toconst fs = require("fs")
.About four months later I finally managed to discover this repo as well as
*.js.nft.json
files inside.next/server/pages
. It all makes sense now 😅Given the recent addition
node:fs
in #285, would it be feasible to supportfs-extra
too? I understand that supporting every third-party lib is not worth it, butfs-extra
is pretty big:The mystery of ‘lost’ files in lambdas was bugging me for quite some time and I spent about two working days on figuring things out. If
fs-extra
was supported out of box before I switched to it, I’d be much less puzzled about Vercel! 🙂What do you think? Happy to help with a PR or with testing!
The text was updated successfully, but these errors were encountered: