From df4bc99d9a3b6f094788aabc466d8895d6682aca Mon Sep 17 00:00:00 2001 From: DeaDvey Date: Sat, 9 Aug 2025 12:44:39 +0100 Subject: [PATCH] Initialise() imports fs (bug fix) --- src/initialise.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/initialise.js b/src/initialise.js index 6799fdb..ffaa7d7 100644 --- a/src/initialise.js +++ b/src/initialise.js @@ -1,8 +1,11 @@ +import·{·createRequire·}·from·'module'; +const·require·=·createRequire(import.meta.url) // Initialise the program by creating users.js, comments.js, posts.js and config.js // All require default content in them to start off with // Then exit successfully // returns nothing export function initialise() { + const fs = require("fs"); try { const users = require("../data/users.js"); }