Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Build a REST API With Express Modeling Data for the API Connecting Mongoose to MongoDB

Peter Gess
Peter Gess
16,553 Points

Require is not defined?

I am getting the following error and not sure why...any ideas?

E QUERY [thread1] ReferenceError: require is not defined :

2 Answers

Adam Beer
Adam Beer
11,314 Points

Are you well installed? Did you really refer to it? Please show your code. That's hard to guess.

Peter Gess
Peter Gess
16,553 Points

I figured it out on my own. Thanks.