secure-ls
secure-ls copied to clipboard
Webpack errors after upgrading to 2.0.0
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'});
...
}