We are using nx for one of our projects, and it is advocating for enabling the nx-cloud cache. This is fine until you find out you need to claim the workspace and do things you don’t care about. If you fail to do so up to 7 days from the creation time, the builds are… Continue reading NX Dev: neverConnectToCloud is true but NX still connects to the cloud
To update an Azure Function from Node JS 14 to 18LTS, you need to: Backstory Microsoft is deprecating support for Nodejs 14 LTS in Azure Functions, so I needed to update the ones that used it. I went on and tried to update the Node version from the Function App configuration, but the dropdown allowed… Continue reading Updating an AzureFunction from Node 14
When debugging a ReactNative app on a physical Android device, one can get an error that the device cannot connect to Metro. Usually, the error is related to the port forwarding not being set up (the laptop port 8081 should be exposed to the device port 8081). When you have more than 1 device connected… Continue reading Adb reverse gives the error: more than one device/emulator
TL;DR: %ENV_VAR% => %NX_ENV_VAR% We are using nx.dev to build a set of apps and libraries for one of our clients. Recently we found out that a CI/CD script we use to set the version number in the index.html file of the react apps was not working. It simply appends a GET parameter to a… Continue reading NX Dev Not Replacing an Environment Variable in a React Project
We are building a shared UI platform for one of our clients where we decided to store the code in a monorepo and use nx.dev to help us with the code organisation, dependencies, builds, etc. When trying to set up the common libraries of the project as publishable (and buildable) libs, we run into compilation… Continue reading NX.dev – Problems with buildable libraries.
On 12th Nov 2022, I was at js.talks(). Radoslav Stankov from Product Hunt gave a talk about being an effective JS Dev. One of his examples was with some of his fellow developers that had a special relationship with unit tests.They were reading a lot about unit testing and were very interested in the topic,… Continue reading The Career Path of a Dev – Being a Perfectionist vs Being Sloppy
For one of our clients, we’re using Grafana to display charts for the device data. These charts (panels) are embedded in a React app as iframes. Recently we noticed a strange issue with one of the embedded charts. The bar chart values were updated, but not their colouring. If one would reload the iframe URL,… Continue reading Grafana Panel Not Refreshing in Real-time (sometimes)
Hey folks, I just released my first personal app to the Google Play Store! It’s an app to group your friends by sport so you can recall who to call when in the mood for a particular activity. Get it from Google Play Store or check the app landing page on sportsmates.app!
I had a Redis Cache Plugin enabled for the website. It turns out that the Redis Cache Plugin uses the table prefix as a prefix for the Redis Cache keys. So if your staging site has a separate DB, but with the same prefix as in the prod one, the Redis Cache will get mixed… Continue reading WordPress: Creating a staging version, makes the production wp-login redirect to the staging one.
In case you have such an issue, and verify that you don’t call history.push() 2 times, check your content for an iframe. TL; DR: React tries to minimize re-rendering and will reuse the iframe element by just changing its src. This will update the history object, which is apparently shared with the main page (and… Continue reading In a React app, I need to press the back button 2 times in order to go to the previous page