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

Nested component not rendering #108

Open
5 tasks done
nulkode opened this issue Jun 29, 2024 · 3 comments
Open
5 tasks done

Nested component not rendering #108

nulkode opened this issue Jun 29, 2024 · 3 comments

Comments

@nulkode
Copy link

nulkode commented Jun 29, 2024

Describe the bug

I'm trying to import a model in components/3D/TestModel.vue and nest it. However, it's not appearing. Only those models that are inside the app.vue or inside components itself and not the subfolder are rendered.

Reproduction

https://github.com/nulkode/tresjs-nuxt-error

Steps to reproduce

  1. Clone the minimum reproduction repository.
  2. Install all the dependencies with bun install.
  3. Run with bun dev.
  4. Observe that only two cubes are rendered, one missing in the center that is the one in components/3D/TestModel.vue

image

System Info

System:
    OS: Windows 11 10.0.22631
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.5 - C:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.17 - ~\.bun\bin\bun.EXE
  Browsers:
    Ungoogled Chromium 124.0.6367.91 (Official Build, ungoogled-chromium) (64 bits)

I'm using bun as a package manager but it is not listed as a package manager.

Used Package Manager

npm

Code of Conduct

@alvarosabu
Copy link
Member

Hi @nulkode what happens if you add the actual import from the component? Like

import Cube from '/components/3D/TestModel.vue/

Is it rendered?

@nulkode
Copy link
Author

nulkode commented Aug 31, 2024

When I import it, it appears.

@alvarosabu
Copy link
Member

@nulkode seems to be related to the autoimport detection of your Nuxt app https://nuxt.com/docs/guide/concepts/auto-imports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants