-
|
I've been banging my head against the wall on this one for a little while - hoping someone has any ideas! I've had no luck on the Discord so far. I've been working on moving my project's documentation from Writerside to Docusaurus, and things are mostly going fine. Furthermore, I decided to add a version picker to retrieve metadata and dependency info about each version. My first attempt downloaded all info about all versions on startup, and this works fine. I'm using a global Redux store, nothing too complex. However, this approach was quite slow and not suitable for users with some types of connection, so I decided to download the required information on demand. The code I've written works when run in dev mode, but for some reason, it breaks when I build: I can't figure out any workarounds, which may be unsurprising given I don't have all that much experience with React and almost zero experience with Redux. Swizzling out
I would very much appreciate any help that might point me in the right direction! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
It's difficult to help troubleshoot issues with custom code you write. But if you know this commit introduced the problem, why not try to apply your changes again in many smaller commits until you find the root cause of the issue, and remove what you swizzled until it works again to find the problematic part. |
Beta Was this translation helpful? Give feedback.

Your problem is related to using top-level await in modules. I'm not sure why this produces such an error in our React components, but we don't have full ESM support and top-level await is a quite fancy feature that you'd rather avoid if your tool doesn't explicitly support it.
If you use hardcoded data, your build can pass: