Parser Error: Couldn't load the base class: res://scripts/myscript3.gd (Inheritance)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Riderick

Hello, I’m trying to use inheritance, I have three scripts where two of them extend the third one. It works if only one of those scripts extend the third one, but if I have the two scripts extending the third one at the same time I get the following error that I can’t figure out why it happens.

The first two scripts are linked to a Button node, the third script is not linked to any node.

Script 1:

extends "res://scripts/Conf_PopUp_Menu.gd"

Script 2:

extends "res://scripts/Conf_PopUp_Menu.gd"

Script 3:

extends Button

So when enters the script 2 in the Extend line I get the following error.

Parser Error: Couldn't load the base class: res://scripts/Conf_PopUp_Menu.gd

What could be happening? Thank you very much!

PD: The error is not thrown in compilation but in execution.