Git Product home page Git Product logo

react-auth-starter's People

Contributors

shaunwa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-auth-starter's Issues

can you help on this i get this error after 01_08

i have connect to mongo db url to my mongodb ,after that when i am testing on postman it gives this error

[nodemon] starting babel-node -r dotenv/config ./src/server.js
Server is listening on port 8080
(node:18324) UnhandledPromiseRejectionWarning: Error: data and salt arguments required
at Object.hash (D:\code\REACT-AUTH\react-auth-starter\back-end\node_modules\bcrypt\bcrypt.js:137:17)
at D:\code\REACT-AUTH\react-auth-starter\back-end\node_modules\bcrypt\promises.js:29:12
at new Promise ()
at Object.module.exports.promise (D:\code\REACT-AUTH\react-auth-starter\back-end\node_modules\bcrypt\promises.js:20:12)
at Object.hash (D:\code\REACT-AUTH\react-auth-starter\back-end\node_modules\bcrypt\bcrypt.js:133:25)
at _callee$ (D:\code\REACT-AUTH\react-auth-starter\back-end\src\routes/signUpRoute.js:67:39)
at tryCatch (D:\code\REACT-AUTH\react-auth-starter\back-end\node_modules\regenerator-runtime\runtime.js:63:40)
at Generator.invoke [as _invoke] (D:\code\REACT-AUTH\react-auth-starter\back-end\node_modules\regenerator-runtime\runtime.js:294:22)
at Generator.next (D:\code\REACT-AUTH\react-auth-starter\back-end\node_modules\regenerator-runtime\runtime.js:119:21)
at asyncGeneratorStep (D:\code\REACT-AUTH\react-auth-starter\back-end\src\routes\signUpRoute.js:16:103)
(Use node --trace-warnings ... to show where the warning was created)
(node:18324) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or
by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:18324) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

mongod

mongod is not recognized as an internal or external command,
operable program or batch file.

how to solve this

Error in running backend using npm run dev

[nodemon] 2.0.7
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting babel-node ./src/server.js
'babel-node' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...

Trying your tutorial in 2024

I'm using NVM to set my node to v9.11.2 which seems to be the version to use with the app dependencies.
I'm not up to speed with the current react-router implementation so I'm attempting to stay close to what the lesson presents.

$ nvm current
v9.11.2

I get the following error with npm start. Any suggestions?

> [email protected] start /home/kingram/TUTORIALS/LIL/react-auth-starter/front-end
> react-scripts start

/home/kingram/TUTORIALS/LIL/react-auth-starter/front-end/node_modules/terser-webpack-plugin/node_modules/p-limit/index.js:29
                } catch {}
                        ^

SyntaxError: Unexpected token {
    at new Script (vm.js:51:7)
    at createScript (vm.js:136:10)
    at Object.runInThisContext (vm.js:197:10)
    at Module._compile (internal/modules/cjs/loader.js:618:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.