Opened 8 years ago

Closed 8 years ago

#13000 closed defect (fixed)

dojo/i18n.js + requireJS failure

Reported by: Paul Bouchon Owned by: Rawld Gill
Priority: high Milestone: 1.7
Component: Loader Version: 1.6.1
Keywords: i18n, i18n!, requireJS, AMD Cc:
Blocked By: Blocking:

Description

I'm using requireJS and a dojo nightly build (5.19.11).

I created a simple page with a BorderContainer? and a ContentPane?. In the root of my application directory, I have the requireJS i18n.js! plugin, where it should be.

The BorderContainer? loaded fine, the ContentPane? threw up an error in dojo/i18n.js: TypeError?: Result of expression 'require.toAbsMid' [undefined] is not a function.

Changing dojo/i18n.js syncRequire to return 'mid' instead of 'require.toAbsMid(mid)' fixed my issue.

Change History (6)

comment:1 Changed 8 years ago by ben hockey

Owner: set to Rawld Gill

comment:2 Changed 8 years ago by bill

Component: GeneralLoader

comment:3 Changed 8 years ago by Rawld Gill

Status: newassigned

comment:4 Changed 8 years ago by Rawld Gill

Milestone: tbd1.7

comment:5 Changed 8 years ago by Florian

I think this refers to http://trac.dojotoolkit.org/ticket/13220

Regards,

Florian

comment:6 Changed 8 years ago by Rawld Gill

Resolution: fixed
Status: assignedclosed

You should use the dojo/i18n plugin for dojo modules. You can still use the requirejs i18n plugin for other modules if you would like--they can co-exist.

The dojo/i18n plugin is now compat with requirejs; see #13968.

Please consider using the dojo loader in place of requirejs--it does more and is smaller.

Note: See TracTickets for help on using tickets.