View Full Version : Migrating from 2.2 to 3.2.1: "Uncaught TypeError: Cannot read property 'dom' of null"

23 Mar 2011, 10:26 AM
Hi folks,

Taking the plunge on migrating an old 2.2 app to the latest (3.2.1). Getting this error:

"Uncaught TypeError: Cannot read property 'dom' of null"

... when executing this code

var viewport = new Ext.Viewport({
//id: 'viewport',
layout: 'border',
items: [
new Ext.BoxComponent({ // raw element
id: 'header2',
autoEl: 'header2',
region: 'north',
height: 110,
el: 'currentyear'
}), {
title: 'Divisions',
region: 'west',
width: 320,
fill: true,
split: true,
collapsible: true,
items: divTree

I'm also getting an "Uncaught TypeError: Cannot call method 'enableDisplayMode' of null".

Not sure what is going on ... what to change to resolve .. so any help would be appreciated.

Thanks -wg