softvar / secure-ls

:lock: Secure localStorage data with high level of encryption and data compression
http://softvar.github.io/secure-ls
MIT License
646 stars 82 forks source link

Webpack errors after upgrading to 2.0.0 #74

Open SnakeSVx opened 4 months ago

SnakeSVx commented 4 months ago

Environment: Angular 18, Typescript 5.4.5, Webpack 5.91.0

Secure-ls version: 2.0.0

Possible regression bug.

Runtime error:

ERROR TypeError: secure_ls__WEBPACK_IMPORTED_MODULE_0__ is not a constructor

Code storage-service.ts

import SecureLS from 'secure-ls';

export class StorageService {
   private ls = new SecureLS({encodingType: 'aes'});
   ...
}