NuxtN
Nuxt17mo ago
bnason

useLogger from `@nuxt/kit` on server side

I'm trying to use useLogger from @nuxt/kit in a server side util, but I get the following:
This module cannot be importedd in server runtime. [importing @nuxt/kit from server/utils/oracle.ts]

RollupError: server/utils/oracle.ts (6:0): "useLogger" is not exported by "node_modules/unenv/runtime/mock/proxy.mjs", "imported by "server/utils/oracle.ts"


Is it ONLY available in a nuxt module? Thats what the docs show as its usage.
Is the setup of a nuxt module not done server side?
Was this page helpful?