What does the line of code look like? I have not encountered this error myself, but I have used Singletons in Godot several times, generally as a data blob.
Example (untested):
# singleton named "Globals"
extends Node
var example_variable = 0
# Using the singleton (different script)
func _ready():
print (Globals.example_variable)
Globals.example_variable += 1
print (Globals.example_variable)