Multiple Define Error

466
0
05-08-2020 09:03 AM
LyndaMcCallum1
New Contributor

Hi

I'm working on an application built off this template. 

In my index.html i have:
<script src="./app/dojo.js"></script>
<script src="https://js.arcgis.com/4.14/"></script>
<script>
   require(["Application/init"]);
</script>
In my dojo.ts, I have added a third party jsPDF library as follows
{
name:"jspdf",
location: `${distPath}/node_modules/jspdf/dist`,
main: "jspdf.min"
},
{
name:"jspdf-autotable",
location: `${distPath}/node_modules/jspdf-autotable/dist`,
main: "jspdf.plugin.autotable.min"
}
The application loads fine but when I do an identify I get multiple define errors.
Any suggestions on how to get past this error? If I remove the widget using jsPDF then there is no conflict.
Thanks
0 Kudos
0 Replies