StephenGrider / FullstackReactCode

Companion repo to https://www.udemy.com/node-with-react-fullstack-web-development
1.39k stars 1.17k forks source link

Can't find my typo or idk what's wrong #51

Open TheTurok opened 5 years ago

TheTurok commented 5 years ago

here is my github to this project https://github.com/TheTurok/serverReact

here is my error message

[1] > client@0.1.0 start C:\Users\airok\Documents\GitHub\server\client

[1] > react-scripts start

[1]

[0] C:\Users\airok\Documents\GitHub\server\node_modules\express\lib\router\route.js:202

[0] throw new Error(msg);

[0] ^

[0]

[0] Error: Route.post() requires a callback function but got a [object String]

[0] at Route.(anonymous function) [as post] (C:\Users\airok\Documents\GitHub\server\node_modules\express\lib\router\route.js:202:15)

[0] at Function.app.(anonymous function) [as post] (C:\Users\airok\Documents\GitHub\server\node_modules\express\lib\application.js:482:19)

[0] at module.exports (C:\Users\airok\Documents\GitHub\server\routes\surveyRoutes.js:8:7)

[0] at Object. (C:\Users\airok\Documents\GitHub\server\index.js:35:33)

[0] at Module._compile (internal/modules/cjs/loader.js:707:30)

[0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)

[0] at Module.load (internal/modules/cjs/loader.js:605:32)

[0] at tryModuleLoad (internal/modules/cjs/loader.js:544:12)

[0] at Function.Module._load (internal/modules/cjs/loader.js:536:3)

[0] at Function.Module.runMain (internal/modules/cjs/loader.js:760:12)

[0] at startup (internal/bootstrap/node.js:303:19)

[0] at bootstrapNodeJSCore (internal/bootstrap/node.js:872:3)

[0] [nodemon] app crashed - waiting for file changes before starting...

[1] [HPM] Proxy created: /auth/google -> http://localhost:5000

[1] [HPM] Proxy created: /api/* -> http://localhost:5000

[1] Starting the development server...