Open sweetim opened 6 years ago
@sweetim as per my comment in #15 I will be updating this module to support Nuxt 2.0 over the next few days, so I'll get back to you on this as and when I have done so.
@wagerfield awesome!
this issue might be related to this https://github.com/nuxt/nuxt.js/issues/3948
I found setting "module": "es2015"
in tsconfig.json
worked for a typescript file. It compiles once, so in nuxt dev
mode, serverMiddleware
file changes will not hot-reload, but otherwise it seems to work for me.
I try to write a simple
serverMiddlerware
using a.ts
, but it complainsfor reference my
sample.ts
file is belowand in the
nuxt.config.js
, i set the serverMiddleware as belowmay I know how to resolve this problem?