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

[Bug]: Not able to run locally using the given steps #59

Open
vigneshs-dev opened this issue Sep 25, 2024 · 1 comment
Open

[Bug]: Not able to run locally using the given steps #59

vigneshs-dev opened this issue Sep 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vigneshs-dev
Copy link

Contact Details

[email protected]

Bug Description

Most of the packages were deprecated, when I use the "npm install" command on both client and server location. Can you please update the steps to run for the latest node framework.

Environment

Windows

Reproduction Steps

cd server
npm install

cd ../client
npm install

Browsers

Firefox, Microsoft Edge

Relevant Log Output

npm start command output for client:

Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:503:5
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:358:12
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\react-scripts\scripts\start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:417:16)
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:452:10
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:323:13
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at context.callback (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\babel-loader\lib\index.js:59:103 {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:471:10)
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:503:5
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:358:12
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\react-scripts\scripts\start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:417:16)
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:452:10
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\webpack\lib\NormalModule.js:323:13
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at context.callback (C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at C:\Users\Vignesh\Vicky\MERN\SocialEcho\client\node_modules\babel-loader\lib\index.js:59:103 {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v20.16.0





npm start command for server:

npm start

> [email protected] start
> nodemon app.js

[nodemon] 2.0.22
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node app.js`
C:\Users\Vignesh\Vicky\MERN\SocialEcho\server\node_modules\passport-jwt\lib\strategy.js:45
        throw new TypeError('JwtStrategy requires a secret or key');
        ^

TypeError: JwtStrategy requires a secret or key
    at new JwtStrategy (C:\Users\Vignesh\Vicky\MERN\SocialEcho\server\node_modules\passport-jwt\lib\strategy.js:45:15)
    at Object.<anonymous> (C:\Users\Vignesh\Vicky\MERN\SocialEcho\server\config\passport.js:13:3)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)        
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) 
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (C:\Users\Vignesh\Vicky\MERN\SocialEcho\server\app.js:49:1)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)        

Node.js v20.16.0
[nodemon] app crashed - waiting for file changes before starting...
@vigneshs-dev vigneshs-dev added the bug Something isn't working label Sep 25, 2024
@srujanGowda08
Copy link

I have reviewed the bug description and identified the root causes for both the client and server errors. I am confident that I can resolve the problems by updating the environment configurations and addressing the dependency issues.

Please assign this task to me, and I will ensure it is resolved promptly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants