CoreUI ONE — 250+ PRO components and 25+ admin templates for React, Angular, Vue, Bootstrap and Next.js, plus Data Grid, Scheduler, 4,300+ PRO icons and the Next.js boilerplate. One license. → See what you get

Fixing "Error: spawn EBADF" in Angular 22.2 ng serve and ng test

spawn EBADF error in Angular 22.2 watch mode

After updating a project to Angular 22.2.0 you may see ng serve -o fail to open the browser, or ng test start in watch mode and run no tests at all. Both come with the same error: spawn EBADF.

The culprit is a single option in angular.json, and removing it fixes both.

Read More…

How to show error state in React

Handling and displaying error states properly is essential for building robust React applications that gracefully handle failures and provide clear feedback to users. As the creator of CoreUI, a widely used open-source UI library, I’ve implemented error handling in thousands of production components. From my expertise, the most reliable approach is using useState to store error information and conditional rendering to display user-friendly error messages. This ensures users understand what went wrong and how they might resolve issues.

Read More…
Subscribe to our newsletter
Get early information about new products, product updates and blog posts.