Ticket #6096 (closed defect: duplicate)
Could not load 'dojo.data.ItemFileReadStore' ; last tried ./data/ItemFilereadStore.js
| Reported by: | guest | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 1.0 |
| Severity: | normal | Keywords: | could not load |
| Cc: | ssundaram@…, astarink@… |
Description
Browser Type: IE Browser Version: 7.0 OS: Cent OS OS Version: 4.5 DOJO release: 1.0.2
In my code I am using dojo.require. For every dojo.require(modulename), I get the following error:
Could not load <modulename>; last tried modulename.js
For example, I am using dojo.require('dojo.data.ItemFileReadStore?'); So, I am getting: Could not load 'dojo.data.ItemFileReadStore?' ; last tried ./data/ItemFilereadStore.js.
I found the following line in dojo.js.uncompressed.js (line:375) throws the exception: missing ';'.
var value = deval?(contents+" //@ sourceURL="+uri);
I just removed the comment part " //@ sourceURL="+uri); to change to var value = deval?(contents);
After the change, it works fine. Firefox does not complain this eorr.
Ticket #5901 refers this same problem but I see that the ticket is closed with no resolution mentioned.