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

Getting error saying cannot find module '.../flashcards/index.js' Created index.js and moved code out of app.js

... it's now working. I noticed that package.json has main listed as index.js same as in your video. Why place the code in app.js? How does it work on the video in app.js?

I would like this to be attached to the specific express app video.

1 Answer

andrew neves
andrew neves
3,055 Points

im having the same issue hoping someone can help mine says " Cannot find module './..models/burger.js' "but thats exactly my path not sure whats going on