Opened 13 years ago
Closed 13 years ago
#5674 closed defect (invalid)
Built version is looking for a nls/_<locale>.js, which doesn't exist
Reported by: | wolfram | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | General | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
As mentioned yesterday to peller in IRC, our build wants to load dojo/nls/_<locale>.js Creating this file with the proper content such as
dojo.provide("dojo.nls._en");
makes it work. I attached our profile file, i removed all non-dojo files from the build and was able to verify that the error still occurs.
Attachments (1)
Change History (5)
Changed 13 years ago by
Attachment: | rs.profile.js added |
---|
comment:1 Changed 13 years ago by
Milestone: | → 1.1 |
---|---|
Status: | new → assigned |
comment:2 Changed 13 years ago by
comment:4 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
IIRC, a problem like this occurs because you are saving your layer file in a location that does not have a module prefix mapping, so the logic used to figure out the resource name for the dojo.require() call fails. We need a prefix mapping for the directory so we can generate a "dot name" for the dojo.require call.
Try adding ["foo", "../foo"] to the prefixes array, then change the layer's name to "../foo/mydojo.js"