Skip to content

Adding this module to Nuxt 3.13 breaks plugin provide types #122

@gbyesiltas

Description

@gbyesiltas

Environment

  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.13.0
  • CLI Version: 3.13.1
  • Nitro Version: -
  • Package Manager: pnpm@8.15.6
  • Builder: -
  • User Config: compatibilityDate, modules, devtools, future
  • Runtime Modules: @nuxt-alt/auth@3.1.7
  • Build Modules: -

Nuxt Config

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  modules: ['@nuxt-alt/auth'],
  devtools: { enabled: true },
  future: {
    compatibilityVersion: 4,
  },
});

Reproduction

https://stackblitz.com/edit/github-6knne9-jq8rf1?file=app%2Fplugins%2Fhello-object-syntax.ts,app%2Fcomposables%2FuseHello.ts,nuxt.config.ts,package.json

Describe the bug

When this module is enabled, things provided to the nuxt context from plugins are typed as unknown.

Screenshot 2024-09-03 at 09 33 22

Additional context

There is a closed issue about this in the Nuxt repo here.

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions