I recently encountered this error as I was trying to build assets: $ node esbuild.config.js .../node_modules/esbuild-plugin-browserslist/dist/resolveToEsbuildTarget.js:43 throw new Error('Could...

If you need to implement newsletter sending, rapidmail is a solid option. Support is very fast, friendly and helpful, and...

TypeScript basically uses structural typing, which is conceptually quite similar to duck typing, but with static compile-time type checking...

I use the Gemini web chat interface quite extensively. One thing that is tedious is giving it all the context...

Event listeners are called in the order of their registration: button.addEventListener('click', () => console.log("I run first")) button.addEventListener('click', () => console.log("I...

If you use the selenium-webdriver gem, it will sneakily phone home once every hour whenever you run a browser...

It's not possible to use variables in media queries with plain CSS. @media (max-width: var(--some-pixel-size...

When you query the browser for DOM elements, there are some footguns you should know about. Some lists are synchronized...

makandra dev
maketintsandshades.com

A simple web tool for generating lighter (tints) and darker (shades) versions of any HEX color value. Tip

Compatibility: Angular 20+ with Jasmine 5.x and Karma 6.x As a default Angular CLI auto-generates test bootstrap...

You want to prevent input to a form field, but all the solutions have side effects: The [readonly] attribute is...

developer.chrome.com

The File System Access API is a new capability of modern browsers that allows us to iterate over selected folders...

unpoly.com

Quick reference for passing data from Rails to JavaScript via Unpoly compilers. Haml Attribute Syntax # Ising hash rockets and string...

unpoly.com

Quick guide for frequently used compiler selector patterns of Unpoly. 1. BEM Component Pattern When: Reusable UI components with multiple...

Note Compiling Sass is probably the slowest part of your build, so this is worth a try if you're...

prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...

developer.mozilla.org

navigator.sendBeacon is a way to reliably send a POST request, even on unload. Please note, however, that there are generally...

If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...

developer.mozilla.org

The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...

SimpleForm comes with an option browser_validations which could be used to give fields that have a presence validation the...

Currently we often use geordi to run cucumber and rspec tests. Geordi takes care of installing a matching chromedriver for...

Frontend performance and user experience are orthogonal to feature development. If care is not taken, adding features usually degrades frontend...

Modern CSS offers the field-sizing property to allow elements to automatically adjust size (width and/or height) to fit their...

When you repeat complex assertions in your tests multiple times, it might be a good idea to extract a custom...