Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doens't work #2

Open
vladimireduardo opened this issue Sep 16, 2018 · 2 comments
Open

It doens't work #2

vladimireduardo opened this issue Sep 16, 2018 · 2 comments

Comments

@vladimireduardo
Copy link

Environment:

  • MacOS High Sierra 10.13.6
  • Node Version: v8.11.3
  • npm version: 5.6.0
  • My local folder: /Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure (only for understand the error log)

Errors:

  1. After run "npm start" i had too many errors in http://localhost:3000 like:
    GET /_next/webpack-hmr 500 1.452 ms - 14 { Error: Not Found at /Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/app.js:29:13 at Layer.handle [as handle_request] (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/express/lib/router/index.js:317:13) at /Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/express/lib/router/index.js:335:12) at next (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/express/lib/router/index.js:275:10) at SendStream.error (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/serve-static/index.js:121:7) at emitOne (events.js:116:13) at SendStream.emit (events.js:211:7) at SendStream.error (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/send/index.js:270:17) at SendStream.onStatError (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/send/index.js:421:12) at next (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/send/index.js:736:16) at onstat (/Users/stackmachine/Documents/Code/stacks/mevn/mevn-secure/node_modules/send/index.js:725:14) at FSReqWrap.oncomplete (fs.js:152:21) status: 404 } GET /_next/webpack-hmr 500 0.737 ms - 14
  2. The login page didn't appear and when i went to /book it didn't redirect to login
@alinaugustin
Copy link

It works. Maybe u didnt configured that: mongoose.connect('mongodb://localhost:27017/mevn-secure', { promiseLibrary: require('bluebird') })

@vladimireduardo
Copy link
Author

It works. Maybe u didnt configured that: mongoose.connect('mongodb://localhost:27017/mevn-secure', { promiseLibrary: require('bluebird') })

yes it works! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants