I have a strange problem with the component and I don't know what more can i do, I'm having this problem whenever I put the lwc inside the recordPage of a custom object but in a standard recordPage object it work also in IE 11, but in Firefox & Chrome no.
This is what it looks like in Lightning app builder:
But when I go back to the record page I find this problem:
When I display the same code in another sandbox, the component works perfectly.
How do I load the static resource styles:
import { loadStyle } from 'lightning/platformResourceLoader';
import styles from '@salesforce/resourceUrl/rep_sr_datatableStyles';
....
renderedCallback() {
Promise.all([
loadStyle(this, styles)
]).then(() => {
window.console.log('Files loaded.');
}).catch(error => {
window.console.log("Error " + error.body.message);
});
}
rep_sr_datatableStyles => is a static resource that it have just a file .css