Due to some recent changes, first:
- Enabling by default
Use Lightning Web Security for Lightning web components - Enable Stricter Content Security Policy
it becomes impossible to debug LWC Javascript files since even you put debugger statement inside, it never stops in Chrome Debugger tools.
I tried to use Grzegorz Skaruz and Sara Morgan suggestions to include "lockerServiceNext": false settings in scratch org definition settings like following:
{
"orgName": "Development Manual",
"edition": "Developer",
"features": [],
"language": "en_US",
"settings": {
"securitySettings": {
"sessionSettings:": {
"lockerServiceNext": false
}
}
}
}
However, when I try to create a scratch org using these settings, I receive the following error:
Error (1): A scratch org was created with username [email protected], but the settings failed to deploy due to: Error parsing file: Element or attribute do not match QName production: QName::=(NCName':')?NCName.
Also, I think that I really need to include
"securitySettings": {
"sessionSettings:": {
"lockerServiceCSP": false
}
}
but any of configuration fail with the same error
Error (1): A scratch org was created with username [email protected], but the settings failed to deploy due to: Error parsing file: Element or attribute do not match QName production: QName::=(NCName':')?NCName.
Is there any workaround or fix to this problem?