Skip to content

Broken AMD loader if using Nowjs and Dojo #490

@PherricOxide

Description

@PherricOxide

I have an application that uses now.js (by extension socket.io-client) and Dojo. It worked fine until the changes to the last version to add support for AMD loaders (#453). Now I'm unable to use both Dojo and Nowjs/socket.io client together. Doing so with the following example code,

<head>
<script type="text/javascript" src="/nowjs/now.js"></script>
<script type="text/javascript" src="/dojo/dojo/dojo.js" data-dojo-config="async:true, parseOnLoad:true"></script>
<script>require(["dijit/layout/BorderContainer", "dijit/layout/TabContainer", "dijit/layout/ContentPane", "dijit/form/Button", "dojo/parser"], function(){});
</script></head>

Results in the following error and the Dojo require call no longer working.

dojo.js:15 Error
 arguments: undefined
 get stack: function getter() { [native code] }
 info: Object
 message: "multipleDefine"
 set stack: function setter() { [native code] }
 src: "dojoLoader"
 type: undefined
 __proto__: ErrorPrototype

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions