I was on Next.js 10 and well I hit a blocker. I wanted to add comments to Cryptwalk. I initially wanted to embed the Reddit comments because I love the community. After a bit of Googling I came across Facebook comments and Discus. Facebook comments to me is a wildcard. I'm in a wide range of Facebook groups. Some are very positive and fun. Others are quite toxic. Speaking of toxic. Well, Discus is pretty terrible. It seems like every single time in the past that I've tried making a comment on Discus, it is more often than not like I'm getting negative engagement. If you want to know how it feels to work at a startup that hasn't found it's identity and is focused on profits more than their workers then go get a Discus account and comment away. Discus makes me appreciate Stackoverflow a bit more.
I know that's oddly specific. However, I'm really trying to paint a picture here.
Anyways, I finally came across Utterances. And well it was simple enough. I have to find a way to streamline people into Github when they Sign up. But, that is on hold for now. So, I was in the midst of adding utterances and saw NextJs 11 had 'next/script'. As soon as I saw that I was like yea I want that. I went down the rabbit hole of upgrading to NextJs 11. The biggest pain was when I accidentally used the npm command as opposed to the yarn command. I had to run a lerna clean, delete the lock files, and fix an issue where I had two different versions of NextJs. How I've gone this long in that state is beyond me. It probably helps that Cryptwalk has no users.
NextJs 11
Once upgraded I deployed my changes and to my surprise eslint is offered out of the box with NextJs 11! The build failed because of eslint errors. I read the logs and boom there it was, a list of eslint errors.
Error: Move function declaration to function body root. no-inner-declarations
I really do appreciate how NextJs bakes so much into their framework. I hope they keep the bloat down. Would never want NextJs to have the same demise as Cold Fusion.
As of Next.js 11, Next.js comes with ESLint out-of-the-box.
I FINALLY got around to upgrading Next.js.
It wasn't easy. But, it was worth it.
Comment section
I was on Next.js 10 and well I hit a blocker. I wanted to add comments to Cryptwalk. I initially wanted to embed the Reddit comments because I love the community. After a bit of Googling I came across Facebook comments and Discus. Facebook comments to me is a wildcard. I'm in a wide range of Facebook groups. Some are very positive and fun. Others are quite toxic. Speaking of toxic. Well, Discus is pretty terrible. It seems like every single time in the past that I've tried making a comment on Discus, it is more often than not like I'm getting negative engagement. If you want to know how it feels to work at a startup that hasn't found it's identity and is focused on profits more than their workers then go get a Discus account and comment away. Discus makes me appreciate Stackoverflow a bit more.
I know that's oddly specific. However, I'm really trying to paint a picture here.
Anyways, I finally came across Utterances. And well it was simple enough. I have to find a way to streamline people into Github when they Sign up. But, that is on hold for now. So, I was in the midst of adding utterances and saw NextJs 11 had 'next/script'. As soon as I saw that I was like yea I want that. I went down the rabbit hole of upgrading to NextJs 11. The biggest pain was when I accidentally used the npm command as opposed to the yarn command. I had to run a lerna clean, delete the lock files, and fix an issue where I had two different versions of NextJs. How I've gone this long in that state is beyond me. It probably helps that Cryptwalk has no users.
NextJs 11
Once upgraded I deployed my changes and to my surprise eslint is offered out of the box with NextJs 11! The build failed because of eslint errors. I read the logs and boom there it was, a list of eslint errors.
I really do appreciate how NextJs bakes so much into their framework. I hope they keep the bloat down. Would never want NextJs to have the same demise as Cold Fusion.