Skip to content
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

@types/crypto-js"' has no exported member 'CipherHelper' & 'Encoder' #50

Open
jervalles opened this issue Dec 7, 2020 · 1 comment
Open

Comments

@jervalles
Copy link

jervalles commented Dec 7, 2020

Hello,

I trying to build my project with quasar (vuejs) but i got those errors :

ERROR in .../node_modules/secure-ls/dist/secure-ls.d.ts(4,9): TS2305: Module '"../../@types/crypto-js"' has no exported member 'CipherHelper'.

ERROR in /home/jer/leihia/leihia-vuejs/node_modules/secure-ls/dist/secure-ls.d.ts(4,23): TS2305: Module '"../../@types/crypto-js"' has no exported member 'Encoder'

I got that in my index.ts (store) :

var ls = new SecureLS({});

so I changed to this:

import * as SecureLS from 'secure-ls'
var ls = new SecureLS({});

But stil got original error messages + another one :
TS2351: This expression is not constructable. Type 'typeof SecureLS' has no construct signatures.

Tried with last version even 1.2.5.

I would love any help cause your solution is perfect for my project.
Thanks!

@Gaaab
Copy link

Gaaab commented Jan 4, 2021

Hi! Might be a little too late, however installing "@types/crypto-js": "^3.1.47" did the work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants