Web Development

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

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

3 months ago

Why should we not use index as key in React Lists

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

3 months ago

Partial Matching in Jest

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

6 months ago

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

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

6 months ago

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

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

6 months ago

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

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

6 months ago

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

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

7 months ago

JavaScript: fix “SyntaxError: cannot use import statement outside a module”

I recently was working with a third-party library. I ran into the error "Uncaught SyntaxError: cannot use import statement outside…

7 months ago

How to sort a Set in JavaScript

ES6 introduced the set data structure in JavaScript. But sets are not ordered abstract data structures. So there is no…

1 year ago

Debugging CSS scroll using one simple style

I have been doing a lot of complicated front-end work off lately and that always brings me back to the…

1 year ago
Advertisements