Categories
deployment frontend typescript

Deploy a Vite React SPA app to CloudFront with working BrowserRouter

When I deployed my websites, then I always had problems with refreshing/sub routes like /finding/latest. Other developers posted solutions like sketchy redirect scripts, but they had a big problem.

Categories
javascript typescript

How to achieve validatedNel with fp-ts

fp-ts is a great library, but it can be confusing some times. The last problem that I had was that I didn’t know how to implement validatedNel. Some methods have been deprecated, and the issue answers also didn’t help. ValidatedNel validatedNel is used to validate multiple problems and then merge them together into a single […]

Categories
Crypto react typescript web3

How to use web3-react

Tutorial about how to use web3-react and hardhat to read and execute Solidity contracts.

Categories
typescript Uncategorized

vscode-jest doesn’t work for a react app in a yarn workspace/monorepo

I have created a simple yarn workspace with a single package. This package is the default CRA Typescript app. Repository code is on Github. In this repo: Jest works in command line (yarn workspace frontend test) Jest doesn’t work when clicking the button in vscode or on startup. Tests fail with: I can fix the […]