Skip to main content
4 votes
1 answer
119 views

Error packaging electron app that uses local files

I created an App using electron that interacts with local files using IPC. When i run it using npm start, éverything works as excpected, but when i try to package the app into an .exe file using the ...
MabMab's user avatar
  • 43
0 votes
1 answer
56 views

fs.writeFile adds extra brackets to json of key=>values object in node.js

I'm trying to update one JSON file in a for loop called asynchronously. Each time I update the whole file, with 1 object. This is my very complex code after half a day of research. (I know it's too ...
Magor Menessy's user avatar
0 votes
1 answer
47 views

Is there a way to open, save and close an excel file (.xlsx)?

I've got a daily automated function in nodejs which builds and populates an excel spreadsheet via the package xlsx-populate, which has been running for a couple of years now with no problems. A ...
SosijElizabeth's user avatar
1 vote
0 answers
47 views

Can Nodejs fluent-ffmpeg process opus file stream in async way?

What I want to do: load a large opus file processing it using fluent-ffmpeg output a stream for further use (realtime output is required) Runnable codes(file path needs to be changed): const fs = ...
DanielBUBU's user avatar
1 vote
1 answer
28 views

How do I send big files in nodejs from the client to the server without an "Uncaught out of memory" error?

When sending a big file, such as one over twenty megabytes from the client to the server using a fetch request, the HTML page with the file input freezes for about 10 seconds and gives the error in ...
Aayush's user avatar
  • 13
0 votes
2 answers
42 views

Why does fs.link() fail with EPERM whre fs.rename() succeeds?

I want to serve some static files under the directory /var/www I would like to swap in a new set of files (which exist as, for example, /var/data/example) every few days or so. The server does not ...
gischer's user avatar
  • 375
0 votes
0 answers
23 views

Reset all the settings of an Electron-based app

My Electron app has a menu to Reset All of its settings. I do this by calling fs.rmSync(app.getPath('userData'), { recursive: true }) and it's working fine when it comes to, for instance, the position ...
Alan Garny's user avatar
0 votes
2 answers
39 views

Use npm library in React Native, when it imports fs

I understand that I cannot simply use fs in React Native as in Node. However, my situation is a bit different. Here's a simple representation of my problem. Library: const fs = require('fs') function ...
ssamtkwon's user avatar
  • 155
0 votes
1 answer
52 views

fs.watch doesn't return an FSWatcher instance in Electron

I have an Electron React App Where I'm trying to call .close() on the object that I assigned an fs.watch to. But I think Vite, Electron or something is wrapping something around the object returned ...
Fluxian's user avatar
  • 913
0 votes
0 answers
35 views

Using webpack + firebase, fs.js is creating paths to a directory rather than a file

I am trying to get a very basic project running using both webpack and firebase. However, I am running into issues when using firebase serve to locally host my site. The site should simply load ...
Albie Vanags's user avatar
1 vote
1 answer
77 views

Convert file of consts to string and save it in fs

I'm newbie with electronjs so i tried to save my file as a TXT file via fs like this: simple consts in data.ts file: export const users = [{ id: 1, name: 'a', classId: 1 }] export const classes = [ ...
Morteza Mazrae's user avatar
0 votes
0 answers
23 views

Error: Unable to resolve module fs from {Root Floder}\node_modules\firebase-admin\lib\app\lifecycle.js:

{Root Floder}\node_modules\firebase-admin\lib\app\lifecycle.js: 19 | Object.defineProperty(exports, "__esModule", { value: true }); 20 | exports.FIREBASE_CONFIG_VAR = exports.deleteApp =...
Abhishek Deshmukh's user avatar
0 votes
0 answers
30 views

How to read a file in hex in node.js?

I have this function to read the first bytes of a file and return the result, but it never work with asar files: function readAsarHeader(filePath) { try { // Asegurarse de que la ruta del ...
luiggi batista dilones's user avatar
1 vote
1 answer
229 views

How to get rid of warning "lint TP1004 fs.existsSync(???*0*) is very dynamic" in nextjs 14.2.5 server

Using nextjs 14.2.5, in one of the server component, I need to save a temp file to server storage, the code works fine, but every time the server component is called, there's the this warning lint ...
H.Sheng's user avatar
  • 461
0 votes
0 answers
51 views

How to create file in AWS codecommit?

I am creating a project. This project will log payment details when a payment is created. import * as fs from 'fs/promises'; import * as path from 'path'; app.use('/files', async (req, res) => { ...
EQ0920's user avatar
  • 109

15 30 50 per page
1
2 3 4 5
19