From 6e1184fd75e9f1fab0acbeb66ee21aa95564f8d8 Mon Sep 17 00:00:00 2001 From: Tanel Metsar Date: Wed, 5 Mar 2025 13:26:32 +0200 Subject: [PATCH] Fix unable to load library in Angular Error: Uncaught SyntaxError: The requested module 'http://localhost:4200/@fs/home/....../web-eid-angular-example/.angular/cache/19.1.7/web-eid-angular-example/vite/deps/@web-eid_web-eid-library.js?v=ba44c02a' doesn't provide an export named: 'default' WE2-1048 Signed-off-by: Tanel Metsar --- package.json | 9 +-------- src/config.ts | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index e98b373..c8d0189 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@web-eid/web-eid-library", - "version": "2.0.2", + "version": "2.1.0", "description": "", "scripts": { "lint": "eslint", @@ -18,13 +18,6 @@ "url": "git@github.com:web-eid/web-eid.js.git" }, "module": "web-eid.js", - "exports": { - ".": { - "browser": "./dist/iife/web-eid.min.js", - "import": "./web-eid.js", - "default": "./dist/iife/web-eid.min.js" - } - }, "files": [ "config.d.ts", "config.d.ts.map", diff --git a/src/config.ts b/src/config.ts index d8272e9..58b4749 100644 --- a/src/config.ts +++ b/src/config.ts @@ -21,7 +21,7 @@ */ export default Object.freeze({ - VERSION: "2.0.2", + VERSION: "2.1.0", EXTENSION_HANDSHAKE_TIMEOUT: 1000, // 1 second NATIVE_APP_HANDSHAKE_TIMEOUT: 5 * 1000, // 5 seconds DEFAULT_USER_INTERACTION_TIMEOUT: 2 * 60 * 1000, // 2 minutes