Opened 10 years ago
Closed 10 years ago
#13192 closed defect (fixed)
custom widgets not being resolved
Reported by: | gerhard presser | Owned by: | Rawld Gill |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Loader | Version: | 1.7.0b1 |
Keywords: | widget resolution dojo.require | Cc: | |
Blocked By: | Blocking: |
Description
my dojo.js resides at
/scripts/dojo/dojo.js
I have some custom widgets, which I load via
dojo.require("a.b.C")
till 1.6.1 the widget was loaded from
/scripts/a/b/C.js
but in 1.7.0b1
/scripts/dojo/a/b/C.js
is being loaded which results in an error 500
Change History (7)
comment:1 Changed 10 years ago by
Component: | General → Loader |
---|---|
Owner: | set to Rawld Gill |
comment:2 Changed 10 years ago by
Status: | new → assigned |
---|
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 10 years ago by
The has feature "config-tlmSiblingOfDojo" instructs the loader to assume top-level modules are sibling to dojo, just like in v1.6-. For example, given the module id "a.b.c", "a" is the top-level module. If you have
scripts/dojo/
then "a.b.c" would reside at
scripts/a/b/c.js
assiming "config-tlmSiblingOfDojo" it truthy.
The dev version defaults "config-tlmSiblingOfDojo" to 1. v1.7.0b1 did not include any default value for this switch with implies a value of false. That's why you saw the strange behavior.
Please reopen if you are seeing the above behavior in trunk or in beta1.
Thanks for the report!
comment:5 follow-up: 6 Changed 10 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I'm having the same problem on 1.7.0b1
The workaround is to register the module path
dojo.registerModulePath("a","../a");
comment:6 Changed 10 years ago by
I think this issue will be fixed in 1.7.0b2. I'm trying to test it with current trunk
Replying to ebengtso:
I'm having the same problem on 1.7.0b1
The workaround is to register the module path
dojo.registerModulePath("a","../a");
comment:7 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Should have always worked in the src version; fixed in the release version in [25483]
(In [25483]) added default build switch for profiles to make top-level modules siblings of dojo; fixes #13192