Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defineNuxtPlugin is not found #2

Open
briandee opened this issue Mar 17, 2024 · 0 comments
Open

defineNuxtPlugin is not found #2

briandee opened this issue Mar 17, 2024 · 0 comments

Comments

@briandee
Copy link

Looking at the Nuxt plugin documentation, plugins are only read if they are defined in the plugins directory. Since the plugins defined in the code are in the runtime folder they will not be scanned. When I install and attempt to use the plugin in a Nuxt 3.10.0 app it fails with the following:

[nuxt] [request error] [unhandled] [500] defineNuxtPlugin is not defined
at ./node_modules/nuxt3-pino/dist/runtime/pino.server.mjs:3:1
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ViteNodeRunner.runModule (/Users/g4792/Desktop/care-locationdata-ui/node_modules/vite-node/dist/client.mjs:362:5)
at async ViteNodeRunner.directRequest (/Users/g4792/Desktop/care-locationdata-ui/node_modules/vite-node/dist/client.mjs:346:5)
at async ViteNodeRunner.cachedRequest (/Users/g4792/Desktop/care-locationdata-ui/node_modules/vite-node/dist/client.mjs:189:14)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant