Tresjs / tres

Declarative ThreeJS using Vue Components
https://tresjs.org
MIT License
2.16k stars 102 forks source link

docs(sandbox): "Failed to resolve component: TresDirectionalLight" #521

Closed andretchen0 closed 8 months ago

andretchen0 commented 8 months ago

Describe the bug

Screenshot 2024-01-21 at 22 33 48 copy

In the Tres docs, an error appears in the sandbox:

Failed to resolve component: TresDirectionalLight
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
 at <Repl>

Reproduction

N/A

Steps to reproduce

System Info

Tested in:

* Firefox 127.0.1 (Mac ARM)
* Chrome Version 120.0.6099.234 (Mac ARM)

Used Package Manager

npm

Code of Conduct

alvarosabu commented 8 months ago

@andretchen0 yes this is annoying, for some reason is like the sandbox is not getting the template compiler options 🥲

alvarosabu commented 8 months ago

@andretchen0 I just solved it, there was a fix on the Vuejs Repl repo https://github.com/vuejs/repl/commit/d72dfdf just merged it