Menu

#17 multipleDefine error if log4javascript used with dojo

v1.0 (example)
unread
nobody
None
5
2014-10-05
2014-10-05
No

If log4javascript.js and dojo.js are loaded in the same web page, even the most basic dojo statement will fail with a "multipleDefine" error. For example:
require(["dojo/dom"], function(dom){
});

Discussion

  • Tim Down

    Tim Down - 2014-10-05

    I assume this is on the latest version?

     
  • Mike Richardson

    Mike Richardson - 2014-10-05

    correct, this is the latest version

     
  • Tim Down

    Tim Down - 2014-10-05

    I can't replicate this with a simple example. The following HTML works as expected (i.e. "DOM!" appears with no error in the console):

    <!DOCTYPE html>
    <html>
    <head></head>
    <body>
    <script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.1/dojo/dojo.js"></script>
    <script src="log4javascript.js"></script>
    <script>
        require(["dojo/dom"], function(dom){
            console.log("DOM!")
        });
    </script>
    </body>
    </html>
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.