NuxtN
Nuxt8mo ago
14 replies
matthewadams12

Server plugins not getting invoked

Hi all, I created a new Nuxt app using npx nuxi init. After it was created, I changed directory in to the project, ran
npm run dev
. Worked ok, browser shows default page. I added file plugins/01.hello.server.ts with content export default defineNuxtPlugin(async () => { console.log('hello nuxt server') }). Ran the app via
npm run dev
& expected to see hello nuxt server in the terminal, but it didn't show.

node --version is v22.15.1 & npm --version is 10.9.2.

What gives?
Was this page helpful?