Skip to content

TypeError: kit.addServerMiddleware is not a function. #25

@kouwasi

Description

@kouwasi

Bug report

TypeError: kit.addServerMiddleware is not a function

Describe the bug

Clould'nt start nuxt dev server.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create Nuxt 2 project with the nuxt-app with
? Programming language: TypeScript
? Package manager: Yarn
? UI framework: Vuetify.js
? Template engine: HTML
? Linting tools: ESLint, Prettier
? Testing framework: Jest
? Rendering mode: Single Page App
? Deployment target: Static (Static/Jamstack hosting)
? Development tools: jsconfig.json (Recommended for VS Code if you're not using typescript)
  1. Add this package to the project and add nuxt-supabase module to nuxt.config.js.
    image
  2. Run the yarn run dev
  3. See error

Expected behavior

I expected to run the nuxt server corectlly.

Screenshots

image

System information

  • OS: Ubuntu 20.04 LTS
  • Version of nuxt-supabase: ^2.3.1
  • Version of Node.js: v16.14.0

Additional context

I guess the problem happend from

addServerMiddleware({
path: "/api/auth",
handler: authHandler(resolvedOptions),
});

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions