Open JulianOstmo opened 3 years ago
In my VSCode terminal, when loading an LWC component in the Local Development Server that calls a custom Apex class, I get this error:
TypeError: Cannot read property '_ownerDocument' of undefined
at innerInvokeEventListeners (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:326:26)
at invokeEventListeners (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:267:3)
at EventTargetImpl._dispatch (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:214:9)
at fireAnEvent (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/helpers/events.js:17:36)
at /Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/browser/Window.js:608:7
at processTicksAndRejections (internal/process/task_queues.js:79:11)
TypeError: Cannot read property '_ownerDocument' of undefined
at innerInvokeEventListeners (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:326:26)
at invokeEventListeners (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:267:3)
at EventTargetImpl._dispatch (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:214:9)
at fireAnEvent (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/helpers/events.js:17:36)
at /Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/browser/Window.js:608:7
at processTicksAndRejections (internal/process/task_queues.js:79:11)
Timed out waiting for initConfig
LWR6004: Server is shutdown
TypeError: Cannot read property '_ownerDocument' of undefined
at innerInvokeEventListeners (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:326:26)
at invokeEventListeners (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:267:3)
at EventTargetImpl._dispatch (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:214:9)
at fireAnEvent (/Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/living/helpers/events.js:17:36)
at /Users/myaccount/.local/share/sfdx/node_modules/jsdom/lib/jsdom/browser/Window.js:608:7
at processTicksAndRejections (internal/process/task_queues.js:79:11)
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
This issue has been linked to a new work item: W-8943505
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
Has this issue been resolved or is there any worked around? I am experiencing the same issue.
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
Describe the bug When testing my LWCs in the Local Development Server, every call to a custom Apex class returns a 500 error with the following message: "error parsing or finding aura config: window.Aura not found". When the LWCs are pushed to my scratch org, they work perfectly.
To Reproduce I am calling my custom Apex classes by using either the
@wire
decorator or as a function within a class method:Screenshots
Desktop (please complete the following information):
Additional context I have: