The bundle.js uses async file io operations from the fs library but doesn't await the response. You should be either using the sync methods or await the writeFile before calling appendFile otherwise you can run into race conditions where the writeFile might not have finished before the appendFile gets called.
The bundle.js uses async file io operations from the fs library but doesn't await the response. You should be either using the sync methods or await the writeFile before calling appendFile otherwise you can run into race conditions where the writeFile might not have finished before the appendFile gets called.