amejiarosario / meanshop

🛒 Building an e-commerce application with the MEAN stack
http://meanshop.com
GNU General Public License v2.0
149 stars 104 forks source link

Error during Grunt serve #53

Closed raw-at closed 7 years ago

raw-at commented 7 years ago

image

Error coming Cannot find module './api hing/'

amejiarosario commented 7 years ago

@raw-at Most likely the issue is on server/routes.js line 13.

Do you have something like this?

  app.use('/api/things', require('./api        hing'));

If not, then since you are using Windows it might be confusing \t on \things as a tab... to be safe try:

  app.use('/api/things', path.join('.', 'api', 'things'));

Let me know if that helps

raw-at commented 7 years ago

Yup there was \t in place of /t in the line app.use('/api/things', require('./api hing'));

Thanx for help :)