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

Feat: Add new training page #133

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

thisisobate
Copy link
Contributor

@thisisobate thisisobate marked this pull request as ready for review March 26, 2024 20:45
@thisisobate
Copy link
Contributor Author

Copy link
Member

@todaywasawesome todaywasawesome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nate-double-u
Copy link

I'm getting errors when I try to build, is the README up to date?

# if you like npm 
npm i
npm start

# Or if you like yarn
yarn install
yarn start

Both throw errors

@thisisobate
Copy link
Contributor Author

It’s weird that both ‘yarn install’ and ‘yarn start’ both throw an error.

What version of Node are you running?

@thisisobate
Copy link
Contributor Author

Can you share the error message here?

@nate-double-u
Copy link

Sure, I'm using nvm so it's easy to shift the node version if I'm using the wrong one.

➜  website git:(uche/training-page) ✗ nvm current
v18.18.2

➜  website git:(uche/training-page) ✗ npm start

> [email protected] start
> gatsby develop --host=0.0.0.0

success open and validate gatsby-configs, load plugins - 0.707s
success onPreInit - 0.031s
success initialize cache - 0.020s
success copy gatsby files - 0.061s
⠋ onPreBootstrap
⠋ Compiling Gatsby Functions
/Users/natew-cncf/Repos/open-gitops/website/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:133:10)
    at BulkUpdateDecorator.hashFactory (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/util/createHash.js:145:18)
    at BulkUpdateDecorator.digest (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/util/createHash.js:80:21)
    at Compilation.createHash (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/Compilation.js:3456:47)
    at /Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/Compilation.js:2483:39
    at /Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/Compilation.js:2680:5
    at Object.eachLimit (/Users/natew-cncf/Repos/open-gitops/website/node_modules/neo-async/async.js:3461:14)
    at Compilation._runCodeGenerationJobs (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/Compilation.js:2642:12)
    at Compilation.codeGeneration (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/Compilation.js:2632:8)
    at /Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/Compilation.js:2468:11
    at Hook.eval [as callAsync] (eval at create (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
    at /Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/lib/Compilation.js:2422:36
    at Hook.eval [as callAsync] (eval at create (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/natew-cncf/Repos/open-gitops/website/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.18.2

@nate-double-u
Copy link

I get the same error with the node lts (v20.12.0)

Copy link

@nate-double-u nate-double-u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, found the issue's solution, and adding an environment variable to my terminal helped get it running:

export NODE_OPTIONS=--openssl-legacy-provider
Screenshot 2024-03-26 at 2 54 11 PM

Thanks for this @thisisobate!

/lgtm

Copy link
Member

@niklasmtj niklasmtj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks cool! Thanks for your PR.

LGTM

@niklasmtj niklasmtj merged commit e9669d5 into open-gitops:main Mar 28, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

Add CGOA GitOps Certification to https://opengitops.dev/
4 participants