Compatibility Testing Tool Report Display Issues
Symptom
Compatibility testing tool reports are displayed incorrectly. When opening Chrome DevTools, errors such as "structuredClone is not defined" and "Uncaught SyntaxError: Unexpected token '.'" are observed.
Possible Causes
Some code in compatibility testing reports cannot be parsed in earlier browser versions.
Fixing the "structuredClone is not defined" Error
- Go to the extracted compatibility_testing.tar.gz directory.
- Open the template.html.template file and modify line 134 as follows:
const dataCopy = JSON.parse(JSON.stringify(pipelineData[target]?.[`${target}_tb_data`]));Figure 1 Before modification
Figure 2 After modification
- Perform the compatibility test again.
Fixing the "Uncaught SyntaxError: Unexpected token '.'" Error
- Go to the extracted compatibility_testing.tar.gz directory.
- Open the template.html.template file and modify all occurrences of "?." in the file.
- Scenario 1: Remove "?." from expressions in the "?.[]" format.
- Scenario 2: Remove "?" from the expressions in the "?.name" format.
- Perform the compatibility test again.