-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Has no default export #21
Comments
It seems like the fix for #20 inadvertently broke TypeScript import, likely not capturing the I had to rollback to import * as SecureLS from 'secure-ls';
...
const ls = new SecureLS({...}); |
Thank's @Earthican thats work. |
@Earthican The latest release should work |
@FigueiredoStable could you try the latest version an close the issue if it works? |
This should work:
|
|
Sorry, i closed accidentally. @konsultaner with a fresh installation, return this: ERROR in node_modules/secure-ls/dist/secure-ls.d.ts(17,21): error TS1122: A tuple type element list cannot be empty. TS: |
@FigueiredoStable I'm on "typescript": "3.1.6". I created the d.ts based on the latest docu. Any idea why it might not work with 2.9.2? |
maybe you should try to update to angular 7. |
@konsultaner i see this microsoft/TypeScript#28667 I will try to update my project a soon at possible. |
@FigueiredoStable I fixed it in my current PR #24 |
@konsultaner thanks. |
Why this is not in the documentation / NPM description?! |
Any update on this? I am getting this issue with 1.2.6 on Angular 8.
I had to revert to 1.2.3 to get working. |
@LukeHartcher as long as #24 is not accepted, this issue will remain. |
Can someone please help me, why I get this error: in my package.json
|
Hy, when i try to import in to my angular6 project:
import SecureLS from 'secure-ls'
but i receive this messages:
ERROR in node_modules/secure-ls/dist/secure-ls.d.ts(12,21): error TS1122: A tuple type element list cannot be empty.
src/app/pages/login/login.component.ts(16,8): error TS1192: Module
"node_modules/secure-ls/dist/secure-ls" has no default export.
Can anyone help me, with this?
The text was updated successfully, but these errors were encountered: