<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Extension Development: How to resolve &amp;quot;Mismatched anonymous define() module&amp;quot;? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653111#M2045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, thank you so much. Thanks to your suggestions, I fixed it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was loading a large collection of 3rd-party JS libraries, one of which was calling &lt;EM&gt;define() &lt;/EM&gt;inside it. The error from RequireJS that I pasted above was actually telling me the problematic area. I searched through my external JS file and found that there was actually a function directly adjacent that was calling &lt;EM&gt;define()&lt;/EM&gt; to be AMD-compliant.&lt;/P&gt;&lt;P&gt;Now having removed the offending bits of code, my extension works properly inside the Desktop and Browser clients.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 16:58:02 GMT</pubDate>
    <dc:creator>ttakahashi</dc:creator>
    <dc:date>2014-09-24T16:58:02Z</dc:date>
    <item>
      <title>Extension Development: How to resolve "Mismatched anonymous define() module"?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653108#M2042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prerequisite: I've read the requirejs documentation, the Sense API documentation, and the other example extensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building an extension for Qlik Sense, and I keep getting the below error when viewing my app from the browser (Chrome). My extension works as intended on the Desktop client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error: Mismatched anonymous define() module: function () {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return e&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-external-small" href="http://requirejs.org/docs/errors.html#mismatch"&gt;http://requirejs.org/docs/errors.html#mismatch&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at makeError (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:6:1016"&gt;http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:6:1016&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at r (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:6:4585"&gt;http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:6:4585&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Object.f [as require] (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:6:10850"&gt;http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:6:10850&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at requirejs (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:6:14183"&gt;http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:6:14183&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at k (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/assets/client/client.js??1410305350795:60:7527"&gt;http://localhost:4848/resources/assets/client/client.js??1410305350795:60:7527&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at ExtensionType.b.extend.load (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/assets/client/client.js??1410305350795:60:10926"&gt;http://localhost:4848/resources/assets/client/client.js??1410305350795:60:10926&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Object.e.setType (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/assets/client/client.js??1410305350795:60:1128"&gt;http://localhost:4848/resources/assets/client/client.js??1410305350795:60:1128&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/assets/client/client.js??1410305350795:60:1278"&gt;http://localhost:4848/resources/assets/client/client.js??1410305350795:60:1278&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at l (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:43:17748"&gt;http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:43:17748&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at l (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:43:17748"&gt;http://localhost:4848/resources/js/external/requirejs/require.js?1410305350795:43:17748&lt;/A&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm basing my extension off some of the paradigms from the Angular and Peoplechart example extensions. Namely, I'm separating the painting logic from the properties, keeping them in separate JS files. I'm also calling some other helper JS and CSS files in the main define() module, but it all seems to be just extending the paradigms in the documentation and the examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else run into this and resolved it?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 22:13:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653108#M2042</guid>
      <dc:creator>ttakahashi</dc:creator>
      <dc:date>2014-09-19T22:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Development: How to resolve "Mismatched anonymous define() module"?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653109#M2043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any chance you could share a small sample extension, so that the issue can be reproduced?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653109#M2043</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2014-09-22T12:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Development: How to resolve "Mismatched anonymous define() module"?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653110#M2044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Some things you could check:&lt;/P&gt;&lt;P&gt;- are your module names unique?? That is are there any conflicting names??&lt;/P&gt;&lt;P&gt;- do you load any third party library that does not work well with requirejs??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653110#M2044</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2014-09-24T10:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Development: How to resolve "Mismatched anonymous define() module"?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653111#M2045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, thank you so much. Thanks to your suggestions, I fixed it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was loading a large collection of 3rd-party JS libraries, one of which was calling &lt;EM&gt;define() &lt;/EM&gt;inside it. The error from RequireJS that I pasted above was actually telling me the problematic area. I searched through my external JS file and found that there was actually a function directly adjacent that was calling &lt;EM&gt;define()&lt;/EM&gt; to be AMD-compliant.&lt;/P&gt;&lt;P&gt;Now having removed the offending bits of code, my extension works properly inside the Desktop and Browser clients.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 16:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653111#M2045</guid>
      <dc:creator>ttakahashi</dc:creator>
      <dc:date>2014-09-24T16:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Development: How to resolve "Mismatched anonymous define() module"?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653112#M2046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Takeshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the third party library you are integrating already is AMD-compliant you can simply pass that file in as a dependency to your extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, assume I want to include the library D3 into my extension. D3 is AMD-compliant so I can either load it locally or over the web as a dependency to my extension. Require will automatically resolve those dependencies for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;define(["./d3.min", '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://d3js.org/d3.v3.min.js"&gt;http://d3js.org/d3.v3.min.js&lt;/A&gt;&lt;SPAN&gt;'], function(d3, d3web) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The D3 library is now loaded from a local file and ready to use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(d3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //The D3 library is also loaded over the web and ready to use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(d3web)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first parameter to the define method is an array or dependencies. The second parameter is the function to be called once all the dependencies has loaded. That function is called with the deps. as parameters so you can assign them whatever to whatever local namespace you like without polluting the global scope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 19:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/653112#M2046</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2014-09-30T19:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Development: How to resolve "Mismatched anonymous define() module"?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/2421787#M19964</link>
      <description>&lt;P&gt;I'm facing a very similar case where my extension seems to have crashed importing the d3.min.js (Version 7.8.5) in all cases even when I apply a different name to it first once I open the selections pane once (Mismatched anonymous define error triggered and invalid visualization shown in frontend and payload to AWS SQS Queue contains JS of d3 code function)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also it did not help I changed to d3customVersion as an import name and then re-declared within the extension via:&lt;/P&gt;
&lt;P&gt;let d3 = d3CustomVersion;&lt;/P&gt;
&lt;P&gt;And weirdly I found out: Qlik somehow overrides the d3 object globally otherwise I suspect as undocumented inconsistent behaviour, potentially maybe also causing requireJS to get confused? but that is only my suspicion because I saw suddenly appear (without importing it) under console.log(d3) a really old d3 version 3.X.X&lt;/P&gt;
&lt;P&gt;and I still couldnt solve this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: Was now able to fix it and the gost d3 injection that was invisible was actually the error&lt;/P&gt;
&lt;P&gt;(I used the other d3 version at one point deep within the extension without realizing)&lt;/P&gt;
&lt;P&gt;fix was to declare new variable d3CustomVersion and pass it along to all functions.....&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Development-How-to-resolve-quot-Mismatched-anonymous/m-p/2421787#M19964</guid>
      <dc:creator>fabian3684386</dc:creator>
      <dc:date>2024-02-21T15:39:57Z</dc:date>
    </item>
  </channel>
</rss>

