Opened 10 years ago

Closed 10 years ago

#9228 closed defect (invalid)

Build system issues with scopeMap and NLS.

Reported by: Jared Jurkiewicz Owned by: James Burke
Priority: high Milestone: tbd
Component: BuildSystem Version: 1.2.3
Keywords: Cc:
Blocked By: Blocking:

Description

Reported from a co-worker of mine:

I am following the instructions here ( http://dojotoolkit.org/book/book-dojo/part-3-javascript-programming-dojo... ) to do a custom build for my widgets that can be used on a page with multiple versions of dojo.

The custom build works fine when it is the only version of dojo included in the page however when I start using a second version of dojo the loader tries to load all the NLS files from only the first copy of dojo included on the page.

<script type="text/javascript" src="./dojo/dojo.js"

djConfig="isDebug: true, parseOnLoad: true">

</script>

<script type="text/javascript" src="./mycustomdojo/dojo/dojo.js"></script>

Causes the following:

http://localhost:9080/myapp/dojo/nls/dojo_en-us.js 404 Not Found 29ms dojo.js (line 16)

The NLS file is actually at http://localhost:9080/myapp/mycustomdojo/dojo/nls/dojo_en-us.js

Ho

Switching the order of the above two javascript statements will however load the NLS file correctly but causes the following issues:

dojo._hasResource is undefined

[Break on this error] if(!dojo._hasResourcedojo.foo?){ _h... use _hasResource directly in your code.

loader.js (line 8)

dojo._hasResource is undefined

[Break on this error] if(!dojo._hasResourcedojo._base?){ ... use _hasResource directly in your code.

Change History (2)

comment:1 Changed 10 years ago by Jared Jurkiewicz

Note: This was also asked about in the support forums, with no reply: http://www.dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-support/nls-issue

comment:2 Changed 10 years ago by James Burke

Resolution: invalid
Status: newclosed

Sorry, I missed the forum post. I commented there for the probable cause of the issue. Closing this bug out in favor of following up in the forum. If a bug shows up as part of that discussion, I'll reopen this bug.

Note: See TracTickets for help on using tickets.