floating-shoe icon indicating copy to clipboard operation
floating-shoe copied to clipboard

How do avoid tese console errors with drei 5.00

Open riekusr opened this issue 3 years ago • 4 comments

Error when converting '/node_modules/@react-three/drei/web/Html.js' esmodule to commonjs: this[e.init.type] is not a function Error when converting '/node_modules/@react-three/drei/core/softShadows.js' esmodule to commonjs: this[e.type] is not a function

riekusr avatar May 19 '21 05:05 riekusr

i think its better to ask at react-three repo. But in general, its best to provide also a code example

akella avatar May 19 '21 05:05 akella

I will, I was following a tutorial: https://codesandbox.io/s/floating-shoe-forked-qxjoj if you simply upgrade this to the latest drei you get that error.

riekusr avatar May 19 '21 06:05 riekusr

@krimpenrik the box you just linked? i updated it, dont see any problems ...

drcmda avatar May 19 '21 11:05 drcmda

https://codesandbox.io/s/shoe-configurator-forked-cdvpn?file=/src/App.js

riekusr avatar May 19 '21 14:05 riekusr