Learn Node.JS Message Mixer - stuck on step 5

link to Message Mixer exercise

I looked on other threads and followed instructions on how to fix my code to get past step 5. However, after doing all that I’m supposed to, I still don’t get the working code I wanted. I’ll provide a few screenshots to explain what I mean:



All three encryption functions were cut/pasted from message-mixer.js to encryptors.js. I exported both encryptors.js to both super-encder.js and message-mixer.js. This was done using module.exports(). If anybody can give me some good directions and help solve this issue that would be great.

To import something, you would use require, not module.exports (for Node.js)

So

const encryptors = module.exports("./encryptors.js");

should be

const encryptors = require("./encryptors.js");
1 Like