Cannot read property 'node' of null
时间: 2023-11-14 14:41:48 浏览: 116
This error typically occurs when you are trying to access a property of a variable that is null or undefined. In this case, the property 'node' is being accessed on a variable that is null.
To fix this error, you need to check if the variable is null or undefined before trying to access its properties. You can do this using a conditional statement like if(variable === null) or if(typeof variable === 'undefined'). Once you have checked that the variable is not null or undefined, you can safely access its properties without getting the 'Cannot read property' error.