utsuboco / r3f-perf

Easily monitor your ThreeJS performances.
https://codesandbox.io/s/perlin-cubes-r3f-perf-wtp9t?file=/src/App.js
MIT License
624 stars 24 forks source link

TS types don't load #56

Open hichemfantar opened 1 month ago

hichemfantar commented 1 month ago

using intellisense with the component doesn't work

image

image

reproduction:

https://codesandbox.io/p/sandbox/wtp9t?file=%2Fsrc%2FApp.js%3A89%2C16

A7medAbdien commented 6 days ago

same

I am getting this

Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
    at expandShaderIncludes (r3f-perf.js?v=00715a23:87066:17)
    at upgradeShaders (r3f-perf.js?v=00715a23:87258:21)
    at MeshBasicMaterial.onBeforeCompile (r3f-perf.js?v=00715a23:87113:24)
    at getProgram (chunk-DJZEKAGW.js?v=ffda6a78:34381:18)
    at setProgram (chunk-DJZEKAGW.js?v=ffda6a78:34529:19)
    at WebGLRenderer.renderBufferDirect (chunk-DJZEKAGW.js?v=ffda6a78:33911:23)
    at renderObject (chunk-DJZEKAGW.js?v=ffda6a78:34351:15)
    at renderObjects (chunk-DJZEKAGW.js?v=ffda6a78:34333:11)
    at renderScene (chunk-DJZEKAGW.js?v=ffda6a78:34254:42)
    at WebGLRenderer.render (chunk-DJZEKAGW.js?v=ffda6a78:34163:9)