@vue/server-renderer or vue/server-renderer not found on build
I want to use the
Normally, this is already included in vue, so just
works on dev, but not on build. It tells me
I tried manually installing the package, so
but same behaviour, works on dev, not on build.
Does somebody know how this could be possible? It seems that nuxt is somehow removing this package in build, even though I am importing it.
@vue/server-renderer package to render a vue template on a server endpoint and send the rendered html code via an email. Normally, this is already included in vue, so just
works on dev, but not on build. It tells me
Cannot find module '/Users/fabian/Desktop/code/nuxt-wordpress-starter/.output/server/node_modules/vue/server-renderer/index.js'I tried manually installing the package, so
npm i @vue/server-renderer , and importing it like this:but same behaviour, works on dev, not on build.
Does somebody know how this could be possible? It seems that nuxt is somehow removing this package in build, even though I am importing it.