Error thrown when an alias is resolved that does not exist. This error indicates that the specified alias has not been created in the container.
new
InvalidAliasError(alias: string)
Creates an instance of InvalidAliasError.
Wasn't a fan of using decorators to dependency inject things in the TypeScript world. Now you don't have to.
Add Package
deno add jsr:@findhow/container
Import symbol
import { InvalidAliasError } from "@findhow/container";
---- OR ----
Import directly with a jsr specifier
import { InvalidAliasError } from "jsr:@findhow/container";
Add Package
npx jsr add @findhow/container
Import symbol
import { InvalidAliasError } from "@findhow/container";
Add Package
yarn dlx jsr add @findhow/container
Import symbol
import { InvalidAliasError } from "@findhow/container";
Add Package
pnpm dlx jsr add @findhow/container
Import symbol
import { InvalidAliasError } from "@findhow/container";
Add Package
bunx jsr add @findhow/container
Import symbol
import { InvalidAliasError } from "@findhow/container";