Opened 9 years ago
Closed 9 years ago
#15762 closed defect (duplicate)
TypeError: this.parseDeferred is undefined
Reported by: | psiberia | Owned by: | psiberia |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | Dijit | Version: | 1.8.0rc1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I have the following error after upgrading from Dojo 1.8.0b1 to 1.8.0rc1
Firebug (Firefox) TypeError?: this.parseDeferred is undefined http://localhost:8080/lib/dojo/dojox/html/_base.js?1343227888966 Line 165
Chrome Uncaught TypeError?: Cannot call method 'then' of undefined
The code that reproduces the error is attached. See lines 65-70.
Attachments (2)
Change History (8)
comment:1 Changed 9 years ago by
Milestone: | tbd → 1.8 |
---|---|
Owner: | changed from bill to psiberia |
Priority: | undecided → high |
Status: | new → pending |
comment:2 Changed 9 years ago by
Status: | pending → new |
---|
Apologies I removed the unnecessary code and forgot I had externalized my dojoConfig. I have updated the code to include the dojoConfig and the error still occurs, which I expected as I was getting it prior to stripping down the code.
comment:3 Changed 9 years ago by
Status: | new → pending |
---|
The second point still stands... You should not use the dojo/domReady! with widgets... Please see: http://livedocs.dojotoolkit.org/dojo/domReady#dijit-widgets
Also if you using the parser and async and parseOnLoad: true
, you should require in dojo/parser
. Please see: http://livedocs.dojotoolkit.org/dojo/parser#running-the-parser
Changed 9 years ago by
Attachment: | issue-15762.2.html added |
---|
comment:5 Changed 9 years ago by
Status: | pending → new |
---|
Attachment (issue-15762.2.html) added by ticket reporter.
comment:6 Changed 9 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #15731.
Like Adam said, it's already fixed.
There is no dojoConfig apparent from the test file. A couple of issues with this:
dojo/dojo.js
defaults toasync: false
. You should not be usingdojo/domReady!
with the legacy loader. It will break things.async: true
, you are using Dijit's which are dependent upondojo/uacss
anddojo/hccss
loading before the widgets are instantiated, but you are not usingdojo/ready
to accomplish this and instead ondojo/domReady!
. You need to wrap your code indojo/ready
.Could you address the issues above and confirm if the issue still persists or not?