Closed juvian closed 4 years ago
Wire is intended to work. Can you include some information here for us?
Thanks
It is not a pre-release org, but it is not a scratch org either. Lightning is not yet enabled and I'm using components inside visualforce with lightning out. I can see that in the visualforce, after including the lightning out.js script there is a window.Aura property, but in the local environment there is not.
I can test on monday if it works fine in the visualforce, if it doesn't work either I guess auraenabled methods might not work with lightning out.
That explains it. If Lightning isn't enabled, we won't be able to make requests via Apex. Thats not a requirement of the framework, just a limitation of the LWC Local Dev Beta implementation.
Also, because data modifications will happen against the org you're connected to, we encourage you not to use real orgs to test against.
I see, good to know. Will try enabling lightning then. And yeah, its a development org. Thanks!
You're welcome.
Component:
Apex:
Response from http://localhost:3333/api/apex/execute: 500 internal error -> error parsing or finding aura config: window.Aura not found
Does wire not work from local development?