ironhack-edu/ironlauncher

Cannot find module 'fs/promises' with node versions 12.x

Closed this issue · 1 comments

Screen Shot 25-11-2021 at 11 10

I believe in src/utils/IO/FsOperationRepo.ts changing

import { mkdir, readFile, stat, writeFile } from "fs/promises";

to

import { promises: {mkdir, readFile, stat, writeFile}  } from "fs";

would fix it.

Let's also start a process to review hot-fixes rather than going back and forth with deploying new changes @ironhack-edu ?

Another quick solution would be to have all users upgrade to the latest version of node but it's not and ideal one.

This dependency issue has been fixed