Babylon + Next.js Setup Optimized for SEO, Load Speed & Developer Experience

Hello, and thanks for sharing this amazing work!

I am trying to use typescript with this but I’m a little confused about how to configure with this setup.

Could you point me in the right direction?

It should work out of the box, just rename .js files to .ts

Ok, thank you.
My issue was not having typescript installed in the root package.json devDependencies.
I got it set up how I like it now :+1:

I forked the repo, for anyone who’s curious here it is:

1 Like

Do you need to install it explicitly? Last time I checked it worked without.

So it was working for dev mode, but failed when I tried to build it. And it threw a warning saying I should upgrade typescript from 3.x to 4.x.
So I’m assuming that my global typescript install was the 3.x version. I also upgraded most of the dependencies in the project so that might’ve been why it didn’t work.
But I just installed typescript in the project and it worked.

1 Like