Open verekia opened 1 year ago
So box geometry can't be found? Is this when clicking it in the editor or when adding an element?
Heya I'm able to open this with no error. Can you confirm on the latest Triplex version @verekia?
It's still happening for me.
I clicked on the component in the left panel, and nothing showed up. Then, the error shows if I click group
on the left.
"@triplex/run": "0.55.3",
"@react-three/drei": "9.74.15",
"@react-three/fiber": "8.13.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"three": "0.153.0",
app/.triplex/config.json
:
{
"components": ["../src/components/**/*.tsx"],
"files": ["../src/**/*.tsx"]
}
Component is located at app/src/components/Crystal.tsx
.
Edit: the same error still happens with updated dependencies:
"@triplex/run": "0.55.3",
"@react-three/drei": "9.80.6",
"@react-three/fiber": "8.13.7",
"react": "18.2.0",
"react-dom": "18.2.0",
"three": "0.155.0",
Can you add a short video?
Okay so:
[undefined, undefined, 1.5]
which is an invalid position. If you set x and y to default to 0
it starts workingAdd this to your tsconfig:
"compilerOptions": {
"types": ["@react-three/fiber"]
}
That did the trick! It doesn't even throw any more on undefined
values.
The following component:
causes the error
Error reading "[...]src/components/models/Crystal.tsx/object/3/5/types" - [Error: Could not find the node's symbol.
Triplex 0.54.1