After adding the plugin to the base docker image on Dockerfile and trying to run the new image, the following error appears.
warn --- config file - /verdaccio/conf/config.yaml
[github-oauth-ui] Version: verdaccio-github-oauth-ui@3.2.0
error--- error loading a plugin github-oauth-ui: TypeError: Cannot read property 'replace' of undefined
at getMajorVersion (/opt/verdaccio/.yarn/$$virtual/verdaccio-github-oauth-ui-virtual-9d25d7ba2e/0/cache/verdaccio-github-oauth-ui-npm-3.2.0-4b8c0d5db8-ee0a13eb08.zip/node_modules/verdaccio-github-oauth-ui/dist/server.js:843:29)
at new Verdaccio (/opt/verdaccio/.yarn/$$virtual/verdaccio-github-oauth-ui-virtual-9d25d7ba2e/0/cache/verdaccio-github-oauth-ui-npm-3.2.0-4b8c0d5db8-ee0a13eb08.zip/node_modules/verdaccio-github-oauth-ui/dist/server.js:1786:54)
at new Plugin (/opt/verdaccio/.yarn/$$virtual/verdaccio-github-oauth-ui-virtual-9d25d7ba2e/0/cache/verdaccio-github-oauth-ui-npm-3.2.0-4b8c0d5db8-ee0a13eb08.zip/node_modules/verdaccio-github-oauth-ui/dist/server.js:2680:22)
at /opt/verdaccio/build/lib/plugin-loader.js:125:32
at Array.map (<anonymous>)
at loadPlugin (/opt/verdaccio/build/lib/plugin-loader.js:62:37)
at Auth._loadPlugin (/opt/verdaccio/build/lib/auth.js:56:38)
at new Auth (/opt/verdaccio/build/lib/auth.js:46:25)
at defineAPI (/opt/verdaccio/build/api/index.js:43:16)
at _default (/opt/verdaccio/build/api/index.js:130:10)
Versions
Version
node.js
on docker
verdaccio
5.x
verdaccio-github-oauth-ui (Plugin)
3.2.0
verdaccio-github-oauth-ui (CLI)
-
Expected behavior
Verdaccio should work.
Observed behaviour
Steps to reproduce
1) On branch 5.x, use this docker file to generate the image (I just added one line to install de plugin)
Bug Report
After adding the plugin to the base docker image on Dockerfile and trying to run the new image, the following error appears.
Versions
Expected behavior
Verdaccio should work.
Observed behaviour
Steps to reproduce
1) On branch
5.x
, use this docker file to generate the image (I just added one line to install de plugin)2) Set parameters on
config.yaml
to enable the plugin (add your own GitHub credentials)3) Run the image like any other container