node.js-fs Questions
1
I need to use fileStystem methods as readdirSync on an API Route in NextJS. It works locally but when deployed on Vercel, the request responds with a 500 status code.
This is Vercel's Funcion Logs:...
Kilan asked 9/11, 2021 at 14:38
4
Solved
I try to use fs on a discordjs bot (v13) but I have a strange error.
I have literally 3 lines between the moment when I can console.log my fs object and the error :
// Get FS
const fs = require('f...
Gravimetric asked 1/5, 2022 at 15:24
1
Solved
I am trying to migrating my Node.js project to Bun. My project uses the 'fs' package in many places. I found many Bun migration examples where they import the 'fs' package as 'node:fs'. But importi...
Kierstenkieselguhr asked 10/9, 2023 at 12:59
1
I am confused with fs.t.ds definition for readFileSync, one of them are defined as
export function readFileSync(
path: PathOrFileDescriptor,
options?: {
encoding?: null | undefined;
flag?: stri...
Koester asked 6/9, 2023 at 15:16
5
Solved
I was recently working with TypeScript and the fs/promises API and got this error when the TypeScript code was compiled and run. I got this error saying:
internal/modules/cjs/loader.js:968
throw e...
Trillby asked 7/11, 2020 at 6:57
2
Solved
I can call
fs.readdirSync("C:\\", { withFileTypes: true })
and get array of fs.Dirent, but they look like
> fs.readdirSync("C:\\", { withFileTypes: true })[32]
Dirent { name...
Debouch asked 14/10, 2019 at 19:48
3
Solved
I'm building a web application in Node.js, and I'm implementing my API routes in separate modules. In one of my routes I'm doing some file manipulation and I need to know the base app path. If I us...
Bradawl asked 7/2, 2014 at 20:25
0
In my angular 2 application, need to use file system for uploading large files to Amazon S3 server. But, I have problem in importing file system in my application. Please help to implement file sys...
Realpolitik asked 20/3, 2017 at 11:0
1
© 2022 - 2024 — McMap. All rights reserved.