NuxtN
Nuxtβ€’14mo agoβ€’
7 replies
ChronicStone

[TypeScript] nuxi typecheck throws errors from node_modules/@agorastore/shared-ui despite skipLibChe

Hi everyone πŸ‘‹

When running
nuxi typecheck
, I'm getting a bunch of TypeScript errors specifically from a Nuxt module in my node_modules (@agorastore/shared-ui).

For example:
node_modules/@agorastore/shared-ui/dist/runtime/components/layout/FloatingSidebar.vue:65:16 - error TS2322: Type '{ name: "dashboard" | "auth-login"...' is not assignable to type 'RouteLocationRaw'

node_modules/@agorastore/shared-ui/dist/runtime/components/system/AppRoot.vue:38:6 - error TS2345: Argument of type '{ theme: BuiltInGlobalTheme...' is not assignable to parameter of type 'Partial<...>'


I tried adding both of these to my tsconfig.json but the errors persist:
{
  "compilerOptions": {
    "skipLibCheck": true
  },
  "exclude": [
    "node_modules",
    "node_modules/**/*"
  ]
}


Is there a way to make nuxi typecheck ignore modules in node_modules? I want to run type-checking on the CI before PRs can be merged, but this prevents me from doing so
Was this page helpful?