Printer Logo

Printer

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.