How to fix the "useNavigate() may be used only in the context of a <Router> component" error in ReactI recently came across this error while trying to do programmatic navigation in React and wanted to write this down for my future self, in case I run into this again. Usually, you will want to use the useNavigate() hook instead of useHistory in the l...1 min read·codechunks.hashnode.devOct 13, 2022
How to deploy an Ember app with NetlifyOnce you have your Ember application all set up with all the styling, it's time to deploy. You can do this via Netlify, but before that, you have to make it ready for production. You can do that by following these steps: 1. Make the app ready for dep...2 min read·codechunks.hashnode.devSep 27, 2022
How to install Tailwind CSS in a new Ember appIf you're building an Ember application and you want to use Tailwind CSS for your styling, here's a quick guide on how to do that. Follow these steps below to wire up Tailwind CSS in your application: Run this command in your current app folder: npm...2 min read·codechunks.hashnode.devSep 22, 2022
What are the "--no-welcome" and "--embroider" flags in Ember CLI?I just started learning how to build with Ember JS, and I was curious about these switches that I use in the Ember CLI: --no-welcome and --embroider. The first one means that you do not want Ember JS to spin up a welcome page for you. So, if you don'...1 min read·codechunks.hashnode.devSep 18, 2022
How to fix the "ReferenceError: SharedArrayBuffer is not defined" error in React JSI recently tried to build a GIF maker with React and the FFmpeg library and got this error: ReferenceError: SharedArrayBuffer is not defined. Apparently, this error happens because Chrome does not automatically work with SharedArrayBuffer. It is turn...1 min read·codechunks.hashnode.devJul 13, 2022