firtoz / react-three-renderer

Render into a three.js canvas using React.
https://toxicfork.github.com/react-three-renderer-example/
MIT License
1.49k stars 155 forks source link

getDeclarationErrorAddendum undefined in production. #220

Closed sungthecoder closed 6 years ago

sungthecoder commented 6 years ago

Hi,

Thank you for the awesome library! I wouldn't be able to start my project without R3R.

Lately, I update the library and my app stopped working in production. So I took a look and found that getDeclarationErrorAddendum function is undefined. In the React3Renderer.js file, the function is defined when NODE_ENV is NOT production, but the file is in use at line 938.

https://github.com/toxicFork/react-three-renderer/commit/f23fd11d7c9b7c022b94ef64d87a0cce1a6f18f3#diff-3a1f15153809a171b437dd49a6449b6aR938

sungthecoder commented 6 years ago

Ah, the error is not because of the undefined method. There was another error cause the code flow to that position. So I will look for the error in my code.