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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid left-hand side in assignment (Angular) #640

Closed
kisimediaDE opened this issue Jul 4, 2023 · 10 comments
Closed

Invalid left-hand side in assignment (Angular) #640

kisimediaDE opened this issue Jul 4, 2023 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@kisimediaDE
Copy link

Hey 馃槂

the bug from #583 is still in the current version of the plugin.
People (including me) are very confused about it. Because in your comment you wrote that you promise a fix in the next version but the added tag is saying WON'T FIX.

Since the issue is closed and still people are commenting it I open this issue to continue the talk.

Hope you have a good week and greetings!

@lbetancourtoliva
Copy link

I get the same issue with the latest version @michelonsouza.
Greetings.

@michelonsouza michelonsouza self-assigned this Jul 25, 2023
@michelonsouza michelonsouza added the bug Something isn't working label Jul 25, 2023
@michelonsouza
Copy link
Owner

I'm sorry about that guys.... I promise I'll fix it ASAP

@ravi-mone
Copy link

ravi-mone commented Oct 6, 2023

@michelonsouza , Can you please fix this , after a long long debugging process I got to know this error is from this encryption package, Can you please fix ASAP, please

I fell here is the issue
src/async-encrypt-storage.ts

if (window && window?.globalThis) {
  /* istanbul ignore next */
  (window?.globalThis as any).AsyncEncryptStorage = AsyncEncryptStorage;
}

TO

if (window && window?.globalThis) {
  /* istanbul ignore next */
//HERE window?.globalThis is changed to window.globalThis
  (window.globalThis as any).AsyncEncryptStorage = AsyncEncryptStorage; 
}

Can you please update the code and publish the new version

@ravi-mone
Copy link

@kisimediaDE ,
it is like this
window.a = 1; //This will not throw error
window?.a = 1; //But this will throw error Uncaught SyntaxError: Invalid left-hand side in assignment

@kisimediaDE
Copy link
Author

@ravi-mone thanks 馃槃 as described here #583 I know exactly what causes the error and also since which commit.
You can just use a old version and everything is working.

@ravi-mone
Copy link

ravi-mone commented Oct 6, 2023

@kisimediaDE thanks for that, it was quick. thanks a ton
question :
then what we are missing if we use this older version 2.12.8, becasue he is already at 2.12.16

@kisimediaDE
Copy link
Author

@ravi-mone dependencies updates. Nothing relevant from function perspective.

@michelonsouza
Copy link
Owner

michelonsouza commented Oct 25, 2023

I would like to apologize for my absence. It's been a busy few weeks, but now I'm back.
I fixed the issue and hope to have good news from testing in version v2.12.19.

Thank you all and again, I'm sorry.

@kisimediaDE
Copy link
Author

Hey, no problem, we're all more than happy that you're even doing the work to develop such a great product in your spare time. And even without the update, the plugin worked in an old version.

I just updated and deployed my project. I no longer get an error message and your latest update works perfectly.

Thank you so much and have a great day!!! 馃槃

@yellowjacketcoder
Copy link

@michelonsouza This issue still exists in latest version 2.12.22

@kisimediaDE How did you get this to work with Angular 15?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants