Creating new TypeScript types using template literal types

3 months ago

TypeScript is way more powerful than I give it credit for. I recently learned about creating new TypeScript types using…

React TypeScript: Simplify Imports with Path Aliases

3 months ago

As codebases grow larger and more complex in structure, imports can become unmanageable. As more directories are added, imports become…

Fix Cannot find module ‘fs’ or its corresponding type declarations.ts(2307)

3 months ago

I recently ran into the error "Cannot find module 'fs' or its corresponding type declarations.ts(2307)" while I was using VSCode…

Why should we not use index as key in React Lists

3 months ago

When working with React, developers often come across the need to render lists of items efficiently. Every item in a…

Delete git branches that do not exist on remote

4 months ago

After working on a project for a while, there will come a time when we will end up with a…

Partial Matching in Jest

6 months ago

Jest has the ability to check for partial matches on arrays and objects. Let us see how to do partial…

JSON.parse(): Fixing ‘SyntaxError: “[object Object]” is not valid JSON’

6 months ago

SyntaxError: "[object Object]" is not valid JSON: usually happens when the value being passed to JSON.parse is not a string…

Fixing “error: cannot find module semver” error in Node.js

6 months ago

When installing a package using npm, you might encounter the "error: cannot find module semver" error. + npm install ...…

Fix “Error:0308010C:digital envelope routines::unsupportedFixing” in Node.js

6 months ago

Node 17 introduced OpenSSL v3.0, which brought in some breaking changes, and the "Error: error:0308010C:digital envelope routines::unsupported" is a result…

Fixing “node: –openssl-legacy-provider is not allowed in node_options” error

7 months ago

I recently ran into the "node: --openssl-legacy-provider is not allowed in node_options" error while working with Node 17. It occurs…

Advertisements