ReactRenderer errors with ReferenceError: process is not defined

I am using the ReactRenderer in a Custom UI Forge app, as recommended in the Using rich-text bodied macros Forge doc. As of about Dec 6, this was working. Now when I build and run, I consistently get an error in the console: Uncaught ReferenceError: process is not defined, and nothing is displayed. I, of course, have no reference to process in my code. Also when I comment out the ReactRenderer usage, the app functions.

Has anyone else seen this? Are there any workarounds?

I am using the latest version of ReactRenderer: 124.17.6. I have also tried down-leveling to 124.16.9, with no success.

You can try:

export default defineConfig({
  define: {
    'process.env': {}
  },
  // ...
})

if you’re using Vite — or apply a similar workaround in other build tools.

Update: This issue no longer appears after the 124.21.0 update on Dec 14