Opened 14 years ago

Closed 14 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:


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


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)

rs.profile.js (557 bytes) - added by wolfram 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by wolfram

Attachment: rs.profile.js added

comment:1 Changed 14 years ago by Adam Peller

Milestone: 1.1
Status: newassigned

comment:2 Changed 14 years ago by James Burke

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"

comment:3 Changed 14 years ago by wolfram

Yes that solves the problem! Thank you!

comment:4 Changed 14 years ago by Adam Peller

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.