create-nuxt-app icon indicating copy to clipboard operation
create-nuxt-app copied to clipboard

Koa template is not compatible with @nuxt/typescript-build

Open zgayjjf opened this issue 7 years ago • 2 comments

I created a koa template just now, and add typescript support according to https://typescript.nuxtjs.org/guide/setup.html.

However, when I run npm run dev, .ts files under store/ haven't been loaded and updated, while .js files worked fine.

Then I changed npm run dev to nuxt, everything works fine.

zgayjjf avatar Nov 18 '19 08:11 zgayjjf

https://github.com/nuxt/typescript/issues/215

I experience simular issue. You should change your server js code to execute await nuxt.ready(); always.

And it should be fixed to whole server js file template to execute await nuxt.ready(); always in this repo

smoonsf avatar Dec 05 '19 06:12 smoonsf

Since 2.12 there's a new approach to use Nuxt.js programatically : https://nuxtjs.org/api/nuxt

If you still have an issue, please open an issue here : https://github.com/nuxt/typescript/issues

kevinmarrec avatar Apr 11 '20 12:04 kevinmarrec