7 Replies Latest reply on Feb 19, 2019 1:14 PM by Maccaferri

    Is there any way to use require inside PI Vision extension template?


      Hello guys,


      I'd like to know if it's possible to use require inside a PI Vision extension template...


      I'm trying to implement this sample code:

      GitHub - Esri/calcite-maps: A Bootstrap theme for designing, styling and creating modern map apps.


      However, the Chrome console shows that require is not defined?


      I added the HTML and CSS + scripts references to my PI Vision extension template just as described in their sample code...


      Is there any other way to load ESRI libraries inside the PI Vision template?


      In the symbol's HTML template I have this test code:


      <script type="text/javascript" src="https://js.arcgis.com/4.10/"></script>


      <script type="text/javascript">


      $(function () {


      console.log("Before require");


      require(["dojo/ready", "dijit/registry", "dojo/parser", "dijit/form/Button"],

      function (ready, registry) {

      ready(function () {

      console.log("Ready Leniel!");







      Thanks for any support.


      * See that after the symbol's template finishes loading, if I type require in Chrome's console it's identifies as a valid function.


      Screen Shot 2019-02-18 at 14.14.26.png


      Added screenshot...