Open runabol opened 3 weeks ago
It's possible that react has a safeguard that requires AbortController.abort()
to have a valid reason
parameter. Are you building this library from source or pulling from the npm
registry? If you're building from source, try adding a valid reason
at this call to AbortController.abort()
: https://github.com/mkkellogg/GaussianSplats3D/blob/ec323ad69dab6cfbfbef419019d626a3dcacd1b5/src/Util.js#L64 If that fixes the issue I will update it so there's always a valid reason
.
I made an update in the 2dgs
branch that I think might fix this problem, want to give it a try?
I was able to successfully create a React component around this library:
It generally works quite well. My only issue now is when running in NextJS in
development
mode withreactStrictMode=true
(which is the recommended setting) I run into this error:I tries wrapping it in a
try catch
block but this doesn't help either.This doesn't happen when I run the NextJS app in
production
mode. i.e.:or when I turn off
reactStrictMode
Wondering if anyone else ran into this and if they found a way around it.