Skip to content

Tag: next.js

Typescript type error property does not exist

I have this component in my Typescript Next project This is what contact.styl looks like it is a CSS file using the Stylus CSS PreProcessor so there is no typo in the spelling of style. I recently fixed an error using a module declaration in my `next-env.d.ts’ file But I keep getting this error? Can any…

How to get absolute URL in production?

The problem I’m facing is that I’m unable to get the absolute URL in the production build when using getStaticPaths and getStaticProps It works fine in the development build but when it comes to production it fails because the hardcoded https://websitename.vercel.app is not the one generated by ve…

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…