share.text("Share text") returns Illegal operation, try gui.get_text(<node>) (SOLVED)

in my game, i have used https://github.com/britzl/defold-sharing extension.
in my game i need to share string message and when "share.text(“Share text”) " called, it returns the following error.how i solve this issue

Which platform are you on?

for Android and iPhone OS

your local share = gui.get_node('share_btn') is shadowing global share from defold-sharing extension, try renaming it: local share_btn = gui.get_node('share_btn') and adjust uses of both appropriately

4 Likes

Ohh:sob:. Thank you so much.you saved me

1 Like