Import "canister: canistername" error

I had this the other day. Is your canister a class? You can’t import it with canister:. You need to create an actor type that conforms to the actor interface and seed it with a hardcoded principal.