Re-creating the Lodash Library Node issue

I’m trying to make my way through the steps of the Lodash Library JavaScript project but I think there’s a bug. Here’s the code below:

const _ = {};

// Do not write or modify code below this line.
module.exports = _;

This is exactly what i’ve been told to write but on step 2 when I need to run the test suite to ensure the lodash object is initialized correctly it says ‘Reference Error: _ is not defined’.

Can anyone help me with this? Thanks in advance!

Hi there, welcome to the forum!

Did you remember to click the Save button at the bottom of the learning environment before running the node tests? :slight_smile:

1 Like

I feel so stupid, I had it in my head that it automatically saved for some reason!

After saving it worked. Thanks for your help!

Don’t beat yourself up too much, that caught me out a few times on the Lodash project as well. :smiley:

Some of the lessons, where you’re writing the code and using the terminal to run it, have a Save button rather than a Run button and work like this. :slight_smile: