Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-tsc compile errors with typeCheck: true #2879

Open
cmcnicholas opened this issue Nov 29, 2024 · 0 comments
Open

vue-tsc compile errors with typeCheck: true #2879

cmcnicholas opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working v3

Comments

@cmcnicholas
Copy link

Environment

  • Operating System: Windows_NT
  • Node Version: v20.11.1
  • Nuxt Version: 3.14.1592
  • CLI Version: 3.15.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Version

v3.0.0-alpha.7

Reproduction

Enable typeCheck: true in any nuxt project with vue-tsc

Description

When enabling type checking, errors are reported in console. I have to disable typeCheck for this to pass a build.

 ERROR 
 ERROR(vue-tsc)  Cannot find module '@nuxtjs/mdc' or its corresponding type declarations.
  There are types at 'C:/Dev/engage-web/node_modules/@nuxtjs/mdc/dist/module.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
 FILE  C:/Dev/engage-web/node_modules/@nuxt/content/dist/runtime/components/ContentRenderer.vue:4:63

    2 | import { kebabCase, pascalCase } from 'scule'
    3 | import { resolveComponent, toRaw, defineAsyncComponent, computed } from 'vue'
  > 4 | import type { MDCComment, MDCElement, MDCRoot, MDCText } from '@nuxtjs/mdc'
      |                                                               ^^^^^^^^^^^^^
    5 | import htmlTags from '@nuxtjs/mdc/runtime/parser/utils/html-tags-list'
    6 | import MDCRenderer from '@nuxtjs/mdc/runtime/components/MDCRenderer.vue'
    7 | import { decompressTree } from '../internal/abstract-tree'

Image

Additional context

No response

Logs

@cmcnicholas cmcnicholas added bug Something isn't working v3 labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3
Projects
None yet
Development

No branches or pull requests

1 participant