Opened 11 years ago
Closed 11 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 11 years ago by
Owner: | set to Rawld Gill |
---|
comment:2 Changed 11 years ago by
Component: | General → Loader |
---|
comment:3 Changed 11 years ago by
Status: | new → assigned |
---|
comment:4 Changed 11 years ago by
Milestone: | tbd → 1.7 |
---|
comment:5 Changed 11 years ago by
comment:6 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.
I think this refers to http://trac.dojotoolkit.org/ticket/13220
Regards,
Florian