JavaScript

Difference between throw new Error and throw someObject

In this tutorial, you will learn what is the difference between throw new Error and throw someObject in JavaScript. Difference between throw new Error and throw someObject The distinction between ‘throw new Error’ and ‘throw someObject’ in JavaScript lies in the way errors are handled. When you use ‘throw new Error,’ the error is encapsulated …

Difference between throw new Error and throw someObject Read More »

Fixed: error:0308010C:digital envelope routines::unsupported

In this tutorial, I will show you how to fix the error: error:0308010C:digital envelope routines::unsupported. Once I created a default IntelliJ IDEA React project, I came across that error. Solution 1: By downgrading Node.js version Option 1: Downgrade to Node.js v16 a. Reinstall the LTS version of Node.js from the official website. b. Or, use …

Fixed: error:0308010C:digital envelope routines::unsupported Read More »

Fix: error: cannot find module timers/promises

Learn how to fix the error: cannot find module timers/promises. I would suggest you first follow this: It seems like the hiccup might stem from an out-of-sync Node.js version. Grab Node.js version 16 or higher if you don’t already have it. If you’re already rocking version 16, tidy up your TypeScript types by kicking off …

Fix: error: cannot find module timers/promises Read More »

Scroll to Top