Skip to content

Tag: javascript

NestJS controller not mapped

So I have an API that will be deployed in a docker container. This API has the authentications controller, simple and not something special. When I start up the API in development mode on my local machine, the auth controller will be found and everything is working fine. Same for building and running it on my…

Warning: next-head-count is missing

I’m using a custom _document.js from Next documentation. In result, I keep getting a warning message printed out to the console. I’ve tried to restart my server and emptied my browser’s cache. My _document.js is inside a “pages” folder as it should be. I made sure that the file i…

How to import all global Vue components in single file

I have a pretty big Vuejs app. I had imported all my components in the app.js file globally. It’s working just fine but for a better structure, I want to separate all my component imports in a single other file. Is it possible? Here is my app.js file example: Answer you can safely make a globalComponent…

Flatpickr.js show first letter of the day only

I cannot find in the documentation how to make the first letter of the day show up only. By default it’s showing Mon Tue etc … I would like to be showing it like below example https://jsfiddle.net/wdL13cty/8/ Answer You can use the locale config option to customize the label as per your requiremen…