-1

this is the situation, my useRouter should consider the useRouter type from .nuxt types, but it's not when I run the build command using nuxt-build-module:

I really would like to know how I can solve that, because i don't wanna use like this

import {useRouter} from '#imports'

does someone knows exactly why this is not considered ?

this is my tsconfig:

{
  //"extends": ["./playground/.nuxt/tsconfig.json", "./.nuxt/tsconfig.json"],
  "extends": "./.nuxt/tsconfig.json",
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "resolveJsonModule": true,
        "noImplicitAny": false,
    "esModuleInterop": true,
    
  },
  "exclude": [
    "dist",
    "node_modules",
    "playground",
  ]
}

I wanna use nuxt composable globally in my module components.

0

Browse other questions tagged or ask your own question.