I have embed existing legacy VF page inside a lightning component. In this page I am calling a remote method onload event for window. Here we are getting following error:
If I declare all remote actions global this error resolved. But I don't want to go with this approach as solution because, to make all remote actions global I need to make classes as global also.
Is there any other way/approach to resolve this issue?