Error in visual studio code

Screenshot 2024-04-25 163615

error - Property ‘node’ does not exist on type ‘DebugViewRuntimeControl’.ts(2339)

I get the above error in Visual Code when opening a cocos project. This class does extend the component class. Node according to the documentation exists in the component class. I am using CocosCreator 3.8.2. How do I fix this ?

Strange…Can you show us more information. Import and class declare part.

This was a script in the internal folder outside assets, it was one of the deault scripts the editor suggests. Note- This doesnt happen when i create my own script under assets.