When you want to include i18n
in your react component library, but the two use cases of i18next
conflict with one another — long story short, you need I18nextProvider
.
Author Archives: lucia
Error with css-loader
Error message looks like this:
var api = require("!./node_modules/[email protected]@style-loader/dist/runtime/injectStylesIntoStyleTag.js");
If you’re using Storybook, or multiple webpack configs of dev/prod, or simply multiple rules… Either way, this error means you’ve specified rules for CSS more than once.
For example, Storybook already has a set of default rules for various file types, and CSS is one of them, so you cannot specify custom CSS
rules again.
SQS receive message failed: The specified queue does not exist for this wsdl version.
I know, it’s not the most helpful error message in the world. Here’s a translation. If you get this error, it’s one of three things:
- You forgot to set
REGION
in environment variables - You set the wrong
REGION
- This queue does not exist and needs to be created
.prettierrc Not Working
Sometimes we just need to explicitly set prettier config path in vscode:
"prettier.configPath": ".prettierrc"
Docker & Compose 101
Every few weeks where I don’t touch Docker I tend to forget the basics:
Continue readingHow to Configure less-loader to Resolve Absolute Import Paths
Provided we have /styles
under root, add the following resolve in your webpack config:
NextJS: How to Exclude Packages from Bundle
Use browser
field in package.json
:
"browser": {
...
"package-name": false
}
How to Replace HTML Tags with React Components
First I tried the normal ways, like using html-to-react and the alike, but somehow due to some finicky formatting of strings, this library just flat out refuses to convert legitimate HTML. On top of that, NextJS was complaining loudly about Prop dangerouslySetInnerHTML did not match
.
Time to bring out the big guns.
Continue readingAWS: How to Display Local Timezone in ECS Metrics
How a simple config as such could be so hidden:

Git: Clean Up Branches
Handy snippet to run, to delete all but the current branch:
$ git branch | xargs git branch -D
$ git remote prune origin