Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Formatter Failed: Uncaught TypeError: Cannot convert a Symbol value to a string #3687

Open
mikhail-ivanov-tr opened this issue Aug 25, 2023 · 2 comments
Labels
External: Lightning Web Security / Locker Categorizes issue or PR as related to LWS or Lightning Locker.

Comments

@mikhail-ivanov-tr
Copy link

Description

When I enabled "Use Lightning Web Security for Lightning web components and Aura components" session setting, inspect in Chrome my LWC component, call $0 in Console tab of Devtools, and try to open the LWC object, I got an error message "Custom Formatter Failed: Uncaught TypeError: Cannot convert a Symbol value to a string". The same issue is not reproducible with Lightning Locker.

2023-08-25_9-00-47

Also, the custom formatters don't work in LWS mode in all expected places, for example in Watch in Source tab of Devtools.

The exception is thrown in aura_proddebug.js in line 33019: ReflectApply$LWS(ArrayProtoSort$LWS, ownKeys$LWS, []);

Steps to Reproduce

My LWC:

<template>
	AAA
</template>
import {api, LightningElement} from 'lwc';

export default class Test extends LightningElement {
	@api val = ['ABC'];
}

Expected Results

Custom Formatters should show content instead of Proxy object.

Actual Results

Still Proxy objects are shown.

Browsers Affected

Chrome Version 116.0.5845.97 (Official Build) (64-bit)

@nolanlawson nolanlawson added the External: Lightning Web Security / Locker Categorizes issue or PR as related to LWS or Lightning Locker. label Aug 25, 2023
@arcadeteddy
Copy link
Contributor

FIX: salesforce/near-membrane#440

@mikhail-ivanov-tr
Copy link
Author

Thank you for the fix. May I know when the fix will be rolled over to SF orgs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External: Lightning Web Security / Locker Categorizes issue or PR as related to LWS or Lightning Locker.
Projects
None yet
Development

No branches or pull requests

3 participants