Skip to content

Wrong module resolution in tsconfig.json file #28224

@guibulator

Description

@guibulator

Environment

  • Operating System: Darwin
  • Node Version: v20.13.1
  • Nuxt Version: 3.12.4
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: compatibilityDate, devtools, modules
  • Runtime Modules: @sidebase/[email protected]
  • Build Modules: -

Reproduction

You have the issue with your default repro as well.
https://codesandbox.io/p/devbox/gifted-boyd-vmf834?file=%2F.nuxt%2Ftsconfig.json%3A145%2C5

Describe the bug

@danielroe
I opened an issue on @sidebase/nuxt-auth because PageMeta was not properly augmented from #app sidebase/nuxt-auth#807. I tested with a local module augmenting #app and it works as expected.

Turns out that the issue is that files under include section in the tsconfig.json are not resolved properly. You can check with even your own devtools module. Check the path in .nuxt/tsconfig.json for devtools: ../node_modules/@nuxt/devtools/runtime

But it should be ../node_modules/@nuxt/devtools/dist/runtime

Additional context

No response

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