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

[question]: Property 'User' does not exist on type OneSignal #1735

Open
1 task done
BraeschAntoine opened this issue Aug 29, 2024 · 2 comments
Open
1 task done

[question]: Property 'User' does not exist on type OneSignal #1735

BraeschAntoine opened this issue Aug 29, 2024 · 2 comments

Comments

@BraeschAntoine
Copy link

How can we help?

Hello,

I'm currently trying to just set the language for OneSignal.
I updated from version 4.4.1, at the time the app was written in plain javascript, so now i updated all librairies and i'm currently in the latest version. I read in the docs and i see that now I have to use
OneSignal.User.setLanguage(lang)
but my typescript is throwing me the following error : Property 'User' does not exist on type...

I'm aware that it might be a problem with my typescript configuration but i can't figure what so I wonder if someone can explain me what I'm doing wrong.

Thanks a lot !

Code of Conduct

  • I agree to follow this project's Code of Conduct
@BraeschAntoine
Copy link
Author

BraeschAntoine commented Aug 29, 2024

Seems quite odd to have to install something to fix a dev problem lol
Edit : the previous comment has been deleted, was trying to make me install something, so i guess it was a scam

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
@BraeschAntoine and others