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!

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 Building a MEAN Application Setting Up MongoDB Using Models in Your Application

DANIEL HÅKANSON
DANIEL HÅKANSON
1,029 Points

Error: Cannot find module '../models/todo'

I recieve this error:

Error: Cannot find module '../models/todo'

  • reset-search-paths.js:35 Function.Module._resolveFilename [lib]/[iron-node]/[electron-prebuilt]/dist/Electron.app/Contents/Resources/e lectron.asar/common/reset-search-paths.js:35:12

  • module.js:20 require internal/module.js:20:19

  • index.js:4 Object.<anonymous> /Applications/MAMP/htdocs/Websites/privateprojects/treehouse/mean-todo/src/a pi/index.js:4:12

  • module.js:20 require internal/module.js:20:19

  • app.js:8 Object.<anonymous> /Applications/MAMP/htdocs/Websites/privateprojects/treehouse/mean-todo/src/a pp.js:8:14

My files are the exact same as https://github.com/treehouse-projects/mean-todo/blob/master/src/api/index.js and https://github.com/treehouse-projects/mean-todo/blob/master/src/models/todo.js