Hi,
I am doing a Proof of Concept in Oracle JET 7.1.0 for exporting part of an Oracle JET Module which includes a Chart into a PDF.
(Basically I want to render part of the HTML including a Chart / SVG generated by JET Component in a PDF)
For doing that I am using js-html2pdf which uses internally html2canvas and jsPDF libraries.
I followed the steps specified in the documentation to add the Third Party Library:
- Installed by using npm install js-html2pdf --save
- Registered in path_mappings.json file
- Used in my Dashboard JET Module
The example is working (it downloads the PDF with the expected result), however the Browser Console shows multiple errors from a JET JavaScript file.
I would like to understand how can I avoid this error being showed in the Browser Console
Error: html with id '': Cannot determine binding provider for a disconnected subtree. 2 ojcustomelement.js:535:11
Error: html with id '': Cannot determine binding provider for a disconnected subtree. ojcustomelement.js:535:11
...
The example is in my GitHub Repository: https://github.com/DanielMerchan/ojet-examples (project ojet-html2pdf)
Clone the project, execute ojet restore and ojet serve. The Dashboard module contains the Chart of Oracle JET Cookbook example and some extra code for using html2pdf for downloading a PDF of the Chart.
If you have any clue why the browser errors displayed, how to avoid it or suggest another library you have used within Oracle JET / Require JS / AMD loading will be welcome .
Kind regards.