auth icon indicating copy to clipboard operation
auth copied to clipboard

Adding this module to Nuxt 3.13 breaks plugin provide types

Open gbyesiltas opened this issue 1 year ago • 0 comments

Environment

  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.13.0
  • CLI Version: 3.13.1
  • Nitro Version: -
  • Package Manager: [email protected]
  • Builder: -
  • User Config: compatibilityDate, modules, devtools, future
  • Runtime Modules: @nuxt-alt/[email protected]
  • 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

gbyesiltas avatar Sep 03 '24 07:09 gbyesiltas