Giter VIP home page Giter VIP logo

hac-dev's People

Contributors

abhinandan13jan avatar andrewballantyne avatar blakeholifield avatar christianvogt avatar debsmita1 avatar dheerajodha avatar divyanshigupta avatar florkbr avatar jeff-phillips-18 avatar jerolimov avatar jkopriva avatar jrichter1 avatar karelhala avatar karthikjeeyar avatar katka92 avatar lcarva avatar mfrances17 avatar mmorhun avatar nemesis09 avatar openshift-ci[bot] avatar openshift-merge-bot[bot] avatar openshift-merge-robot avatar psav avatar ralphbean avatar rohitkrai03 avatar rottencandy avatar sahil143 avatar sawood14012 avatar subhashkhileri avatar vikram-raj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

hac-dev's Issues

webpack proxy crashes with ERR_OSSL_EVP_UNSUPPORTED

Context

I'm following the Getting Started docs.

Current Behavior

Application crashes upon startup.

Expected Behavior

Application runs successfully.

Steps to Reproduce

  1. Edit /etc/hosts as mentioned in docs
  2. npm install
  3. npm run start:prod:beta
๐Ÿš node --version
v16.14.0

Failure Logs

๐Ÿš npm run start:prod:beta

> [email protected] start:prod:beta
> ENVIRONMENT=prod npm run start:beta


> [email protected] start:beta
> BETA=true npm start


> [email protected] start
> webpack serve --config config/dev.webpack.config.js

~~~Using variables~~~
Root folder: /home/lucarval/src/openshift/hac-dev
Current branch: main
Beta branches: master,qa-beta,ci-beta,prod-beta,main,devel,stage-beta
Using deployments: beta/api/plugins
Public path: /beta/api/plugins/hac-dev/
App entry: /home/lucarval/src/openshift/hac-dev/src/entry.ts
Use proxy: true
~~~~~~~~~~~~~~~~~~~~~
Making proxy from SPANDX routes
(node:110203) [DEP_WEBPACK_DEV_SERVER_HTTPS] DeprecationWarning: 'https' option is deprecated. Please use the 'server' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
<i> [webpack-dev-server] SSL certificate: /home/lucarval/src/openshift/hac-dev/node_modules/.cache/webpack-dev-server/server.pem
checking out dev-beta branch of https://github.com/redhatinsights/insights-chrome-build
Reset branch 'dev-beta'
<i> [webpack-dev-server] [HPM] Proxy created: (path) => path.includes('/api/k8s/registration')  -> https://registration-service-toolchain-host-operator.apps.appstudio-stage.x99m.p1.openshiftapps.com
<i> [webpack-dev-server] [HPM] Proxy rewrite rule created: "^/api/k8s/registration" ~> ""
<i> [webpack-dev-server] [HPM] Proxy created: (path) => path.includes('/api/k8s')  -> https://api-toolchain-host-operator.apps.appstudio-stage.x99m.p1.openshiftapps.com:443
<i> [webpack-dev-server] [HPM] Proxy rewrite rule created: "^/api/k8s" ~> ""
<i> [webpack-dev-server] [HPM] Proxy created: (path) => path.includes('/wss/k8s')  -> wss://api-toolchain-host-operator.apps.appstudio-stage.x99m.p1.openshiftapps.com:443
<i> [webpack-dev-server] [HPM] Proxy rewrite rule created: "^/wss/k8s" ~> ""
<i> [webpack-dev-server] [HPM] Proxy created: (url) => {
<i>         const shouldProxy = !appUrl.find((u) => (typeof u === 'string' ? url.startsWith(u) : u.test(url)));
<i>         if (shouldProxy) {
<i>           if (proxyVerbose) {
<i>             console.log('proxy', url);
<i>           }
<i> 
<i>           return true;
<i>         }
<i> 
<i>         return false;
<i>       }  -> https://console.redhat.com/
(node:110203) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
node:internal/crypto/hash:67
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at BulkUpdateDecorator.hashFactory (/home/lucarval/src/openshift/hac-dev/node_modules/webpack/lib/util/createHash.js:155:18)
    at BulkUpdateDecorator.digest (/home/lucarval/src/openshift/hac-dev/node_modules/webpack/lib/util/createHash.js:80:21)
    at /home/lucarval/src/openshift/hac-dev/node_modules/webpack/lib/DefinePlugin.js:595:38
    at Hook.eval [as call] (eval at create (/home/lucarval/src/openshift/hac-dev/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:104:1)
    at Hook.CALL_DELEGATE [as _call] (/home/lucarval/src/openshift/hac-dev/node_modules/tapable/lib/Hook.js:14:14)
    at Compiler.newCompilation (/home/lucarval/src/openshift/hac-dev/node_modules/webpack/lib/Compiler.js:1053:26)
    at /home/lucarval/src/openshift/hac-dev/node_modules/webpack/lib/Compiler.js:1097:29
    at Hook.eval [as callAsync] (eval at create (/home/lucarval/src/openshift/hac-dev/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Command "npm install" fails

Issue

The command "npm install" fails using node v18.4.0 as some modules are not declared

 npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @openshift/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react-router
npm ERR!   react-router@"6.3.0" from [email protected]
npm ERR!   node_modules/react-router-dom
npm ERR!     react-router-dom@"6.3.0" from the root project
npm ERR!     peer react-router-dom@"^6.3.0" from @openshift/[email protected]
npm ERR!     node_modules/@openshift/dynamic-plugin-sdk-utils
npm ERR!       @openshift/dynamic-plugin-sdk-utils@"^1.1.1" from the root project
npm ERR!     2 more (@redhat-cloud-services/frontend-components, @redhat-cloud-services/frontend-components-utilities)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional react-router@"^5.2.1" from @openshift/[email protected]
npm ERR! node_modules/@openshift/dynamic-plugin-sdk-extensions
npm ERR!   @openshift/dynamic-plugin-sdk-extensions@"^1.1.0" from the root project
npm ERR!   peer @openshift/dynamic-plugin-sdk-extensions@"^1.1.0" from @openshift/[email protected]
npm ERR!   node_modules/@openshift/dynamic-plugin-sdk-utils
npm ERR!     @openshift/dynamic-plugin-sdk-utils@"^1.1.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react-router
npm ERR!   peerOptional react-router@"^5.2.1" from @openshift/[email protected]
npm ERR!   node_modules/@openshift/dynamic-plugin-sdk-extensions
npm ERR!     @openshift/dynamic-plugin-sdk-extensions@"^1.1.0" from the root project
npm ERR!     peer @openshift/dynamic-plugin-sdk-extensions@"^1.1.0" from @openshift/[email protected]
npm ERR!     node_modules/@openshift/dynamic-plugin-sdk-utils
npm ERR!       @openshift/dynamic-plugin-sdk-utils@"^1.1.1" from the root project
npm ERR!

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.