Printer Logo


Please note the project has upgraded to Next App Directories in v2.x.x

Creating Error States

The Error command creates a new Error State Component. Review the Next Documentation on Error Handling to learn more.

λ Usage
λ printer error [path]
λ Example Usage
λ printer error example
λ This command then creates
λ app/example/error.tsx
λ ...
λ printer error multi/folder/example
λ This command then creates
λ app/multi/folder/example/error.tsx

This then generates in the file app/example/error.tsx the following code.