maheshyaddanapudi / ansible-playbook-generator-ui

Angular UI for generating Ansible Playbooks
MIT License
21 stars 4 forks source link

Unable to run #27

Open dkarthi1973 opened 1 year ago

dkarthi1973 commented 1 year ago

It is getting the following error while running ( ng serve) Your global Angular CLI version (15.0.4) is greater than your local version (8.3.29). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false". 10% building 4/4 modules 0 active(node:18256) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated. (Use node --trace-deprecation ... to show where the warning was created) i 「wds」: Project is running at http://localhost:4200/webpack-dev-server/ i 「wds」: webpack output is served from / i 「wds」: 404s will fallback to //index.html 10% building 4/5 modules 1 active ...ible-playbook-generator-ui-main\node_modules\webpack-dev-server\client\index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-nodenode:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen); ^

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10) at module.exports (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:412:16) at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:444:10 at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:320:13 at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:203:19 at VirtualFileSystemDecorator.readFile (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\@ngtools\webpack\src\virtual_file_system_decorator.js:46:13) at processResource (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:202:11) at iteratePitchingLoaders (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:158:10) at runLoaders (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:365:2) at NormalModule.doBuild (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:292:3) at NormalModule.build (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:438:15) at Compilation.buildModule (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\Compilation.js:702:10) at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\Compilation.js:944:14 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

maheshyaddanapudi commented 1 year ago

Hi Karthi,

Seemingly due to some libraries being outdated, the build hits an error in local. This project was created when Angular 8 was being used by the world. There have been many updates since then in Dependent libraries, but this repository wasn’t updated.

Please try the below solution.

Instead of making changes to the original code, I have made a v1 image for a couple of components for your use case.

Please find attached the updated version of docker-compose-suite.yml

'docker-compose -f docker-compose.yml up -d'

It should work using port 50000

On Thu, Dec 22, 2022 at 10:29 PM dkarthi1973 @.***> wrote:

It is getting the following error while running ( ng serve) Your global Angular CLI version (15.0.4) is greater than your local version (8.3.29). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false". 10% building 4/4 modules 0 active(node:18256) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated. (Use node --trace-deprecation ... to show where the warning was created) i 「wds」: Project is running at http://localhost:4200/webpack-dev-server/ i 「wds」: webpack output is served from / i 「wds」: 404s will fallback to //index.html 10% building 4/5 modules 1 active ...ible-playbook-generator-ui-main\node_modules\webpack-dev-server\client\index.js? http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-nodenode:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen); ^

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:133:10) at module.exports (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\util\createHash.js:135:53) at NormalModule._initBuildHash (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:412:16) at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:444:10 at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:320:13 at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:203:19 at VirtualFileSystemDecorator.readFile @.*** \webpack\src\virtual_file_system_decorator.js:46:13) at processResource (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:202:11) at iteratePitchingLoaders (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:158:10) at runLoaders (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:365:2) at NormalModule.doBuild (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:292:3) at NormalModule.build (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:438:15) at Compilation.buildModule (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\Compilation.js:702:10) at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\Compilation.js:944:14 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

— Reply to this email directly, view it on GitHub https://github.com/maheshyaddanapudi/ansible-playbook-generator-ui/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZZDHMZHDZOI3LUMAT5F4DWOVBF7ANCNFSM6AAAAAATHN7SX4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Thanks & Regards, Mahesh Yaddanapudi Sent from Gmail iPhone