question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with nuxt3

See original GitHub issue

Hi!

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:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
Intevelcommented, Apr 4, 2022

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.

1reaction
cmmatacommented, Apr 4, 2022

Hey, currently the module only supports Nuxt 2.

I see… And is there any plan to support Nuxt3? Obviously no need for deadlines, only intentions.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found