Skip to content

Auto import does not export components in components.d.ts ? #1093

@EvanSchleret

Description

@EvanSchleret

Describe the bug

I’m working on a threejs app using Nuxt. I noticed that the module automatically imports everything. However, I’m curious to know if it’s normal that no components of tresjs are exposed or exported into the auto-generated components.d.ts file of Nuxt. This would be beneficial for developers like me, as it would allow us to take advantage of the full autocompletion feature offered by most modern IDEs.

Reproduction

https://stackblitz.com/~/github.com/EvanSchleret/tresjs-no-autocomplete-demo

Steps to reproduce

Just open the demo and see that you don’t need to manually import the component. However, you don’t benefit from auto-completion of any component (including component props).

System Info

System:
    OS: macOS 26.0
    CPU: (12) arm64 Apple M2 Max
    Memory: 287.42 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
    Yarn: 1.22.21 - /usr/local/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
    pnpm: 10.12.1 - /usr/local/bin/pnpm
    *bun: 1.2.22 - /opt/homebrew/bin/bun*
  Browsers:
    Safari: 26.0
  npmPackages:
    @tresjs/nuxt: ^5.0.1 => 5.0.1

Used Package Manager

pnpm

Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions