web-eid / web-eid.js

Add secure authentication and digital signing with electronic ID smart cards to web apps with the Web eID JavaScript library
https://web-eid.eu
MIT License
39 stars 18 forks source link

ObservableHQ issue #37

Open ctzurcanu opened 1 year ago

ctzurcanu commented 1 year ago

Tried to use this in Observable https://observablehq.com/ :

webeid = require('web-eid/web-eid.js')
webeid.getVersion()

Error: App has disappeared

seemingly the VERSION is: "0.0.5"

ctzurcanu commented 1 year ago

same error in React:

web-eid.js:61 Uncaught (in promise) Error: App has disappeared at web-eid.js:61:1 at new Promise () at msg2promise (web-eid.js:56:1) at fields.getVersion (web-eid.js:83:1) at Module. (index.js:11:1) at ./src/index.js (index.js:17:1) at webpack_require (bootstrap:851:1) at fn (bootstrap:150:1) at 1 (index.js:17:1) at webpack_require (bootstrap:851:1) at checkDeferredModules (bootstrap:45:1) at Array.webpackJsonpCallback [as push] (bootstrap:32:1) at main.chunk.js:1:81

mrts commented 1 year ago

Hi, @ctzurcanu!

This is the old version published in NPM by previous project. We just recently got rights for NPM and will publish a new version there when we are ready for this.

Meanwhile please use the GitLab Package Registry as written in the docs to install the latest official version:

echo @web-eid:registry=https://gitlab.com/api/v4/packages/npm >> .npmrc
npm install @web-eid/web-eid-library
ctzurcanu commented 1 year ago

unfortunately, that is not an option. In that context: require('web-eid/web-eid.js') // works require('@web-eid/web-eid-library') // does not work

https://observablehq.com/@observablehq/module-require-debugger offers no solutions for importing @web-eid/web-eid-library

Is there a file that can be included by Githubissues.

  • Githubissues is a development platform for aggregating issues.