DEV Community


Discussion on: Boilerplate: NuxtJS + Express server + Jest, all in Typescript

svitekpavel profile image
Pavel Svitek Author

See my comments in README. I didn't want to use classes either, so I explored pros and cons. Read here

And see implementations here:

And class approach here:

I also like the first approach - Vue.extend() better, because it seems that class approach has too much boiler code around it.

madhusudanbabar profile image

Yeah, the classes API feels somewhat complicated and needs extra imports and all,
I was stuck at importing the components using options API,
But later i figured it out that it was just because that i also needed to add .vue extension while importing the components,
BTW thanks for the reply 😇.
And your repo is really great for understanding express in nuxt.

Thread Thread
svitekpavel profile image
Pavel Svitek Author

Great, I'm glad it helped. I'd appreciate if you share with more people.