Opened 8 years ago

Closed 8 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 8 years ago by ben hockey

Component: GeneralLoader
Owner: set to Rawld Gill

comment:2 Changed 8 years ago by Rawld Gill

Status: newassigned

comment:3 Changed 8 years ago by Rawld Gill

Resolution: fixed
Status: assignedclosed

(In [25483]) added default build switch for profiles to make top-level modules siblings of dojo; fixes #13192

comment:4 Changed 8 years ago by Rawld Gill

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 Changed 8 years ago by ebengtso

Resolution: fixed
Status: closedreopened

I'm having the same problem on 1.7.0b1

The workaround is to register the module path

dojo.registerModulePath("a","../a");

comment:6 in reply to:  5 Changed 8 years ago by gerhard presser

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 8 years ago by Rawld Gill

Resolution: fixed
Status: reopenedclosed

Should have always worked in the src version; fixed in the release version in [25483]

Note: See TracTickets for help on using tickets.