Not working with nuxt3
See original GitHub issueHi!
I am having an error when trying to get this plugin to work with Nuxt3. Should be working, or is this plugin only intended to run with Nuxt2?
ℹ Register basic auth module to server middleware
ERROR Cannot start nuxt: Cannot read properties of undefined (reading 'handle')
at Function.use (node_modules/connect/index.js:87:21)
at Object.set [as setLegacyMiddleware] (node_modules/@nuxt/nitro/dist/index.mjs:1875:13)
at node_modules/nuxt3/dist/index.mjs:852:17
at async initNuxt (node_modules/nuxt3/dist/index.mjs:945:3)
at async load (node_modules/nuxi/dist/chunks/dev.mjs:6717:9)
at async Object.invoke (node_modules/nuxi/dist/chunks/dev.mjs:6756:5)
at async _main (node_modules/nuxi/dist/chunks/index.mjs:384:7)
This is my nuxt.config.js
export default defineNuxtConfig({
modules: [
[
'nuxt-basic-auth-module'
]
],
alias: {
images: resolve(__dirname, './public/images')
},
vite: {
build: {
chunkSizeWarningLimit: 1000
}
},
basic: {
name: 'AUTH USER NAME HERE',
pass: 'AUTH PASSWORD HERE',
enabled: 'true' // require boolean value(nullable)
},
})
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
not work with nuxt 3 · Issue #536 · nuxt-community/axios-module
I tryed to add this setting to my nuxt config. This solved this problem but a new error occurred on the client side....
Read more >Nuxt 3 + Tailwind + Eslint + i18n + Sentry Starter - Localazy
This short tutorial will help you set up a scalable Nuxt 3 ... Sentry helps you identify those problems quickly and gives you...
Read more >Vite/Nuxt3 not working and there are no errors - Stack Overflow
My iMac is running macOS Catalina with node v16.17.1. When I try to scaffold a Nuxt3 application using the following commands:
Read more >Nuxt 3 first steps. - ITNEXT
One thing that you can do with that is to disable HMR, which is not so efficient, but as for now it's the...
Read more >Nuxt 3 Tailwind Not Working - YouTube
Nuxt 3 Tailwind Starter Kit. Download FREE now → https://www.nuxt.tips/tailwind-starterIn this tutorial, we discuss what to do if the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Currently I don’t know anything about plans from the module maintainer regarding Nuxt 3. However, the module is used by many and it would make sense to make it Nuxt 3 compatible. I’ll take a look at it & try my best.
I see… And is there any plan to support Nuxt3? Obviously no need for deadlines, only intentions.