So I've been working on several LWCs for SF community and suddenly the modules/c folder in browser's DevTools (both Firefox & Chrome) which contained all the custom components present on page dissapeared (Note: I'm working in sandbox). What I already tried:

  • toggling Lightning debug mode for current user;
  • toggling Lightning Web security in Session setting;
  • clearing browser cache;
  • changing component's API version

but I didn't succeed with any of them.

The only way to debug scripts live for me now is to explicitly put debugger statement as a breakpoint where needed. Strangely, 2 weeks or so ago everything was fine, and even another Sandbox org from a different project doesn't have this issue. Has anyone encountered the same issue before?Here's how my Sources tab in DevTools lool like

  • 1
    Hi, did you try to search the files by name? Sep 29, 2022 at 10:35
  • Hi @RahulGawale, yep, I did, with no result. Sep 29, 2022 at 20:01

1 Answer 1


To solve this you have to follow the steps in the salesforce guide


There are 3 steps to follow:


From Setup enter Debug Mode in the Quick Find box, and then select Debug Mode. Check the box next to your user. Click Enable.

enter image description here

2. From Setup enter Session in the Quick Find box, and then select Session Settings. Under Lightning Web Security, uncheck the box for Use Lightning Web Security for Lightning web components. Click Save.

enter image description here

3 Perform an Empty Cache and Hard Reset

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .