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