I've been developing a React application that works fine in Chrome and Firefox, but fails to render in WebKit-based browsers. The WebKit instance is running in C++ as an overlay atop a Gstreamer video stream using GTK for window handling. The strange part is that WebKit supports all the modern JavaScript features React requires from what I can tell.
npm build
) doesn't render in WebKitReact.createElement()
instead of JSX syntax avoids compatibility issuesI'm currently using a CDN-based approach that:
Environment Details React: v18.3.1 React DOM: v18.3.1 Webpack: v5.98.0 Babel: v7.26.x with @babel/core v7.26.9 React Scripts: v5.0.1 Using babel-loader (v10.0.0)
While my workaround is functional, I'd prefer to use my build system for consistency across environments. What could be causing bundled React to fail in WebKit despite the browser supporting all necessary JavaScript features? How can I modify my build process to be WebKit-compatible?
Any insights would be greatly appreciated!
I've been developing a React application that works fine in Chrome and Firefox, but fails to render in WebKit-based browsers. The WebKit instance is running in C++ as an overlay atop a Gstreamer video stream using GTK for window handling. The strange part is that WebKit supports all the modern JavaScript features React requires from what I can tell.
npm build
) doesn't render in WebKitReact.createElement()
instead of JSX syntax avoids compatibility issuesI'm currently using a CDN-based approach that:
Environment Details React: v18.3.1 React DOM: v18.3.1 Webpack: v5.98.0 Babel: v7.26.x with @babel/core v7.26.9 React Scripts: v5.0.1 Using babel-loader (v10.0.0)
While my workaround is functional, I'd prefer to use my build system for consistency across environments. What could be causing bundled React to fail in WebKit despite the browser supporting all necessary JavaScript features? How can I modify my build process to be WebKit-compatible?
Any insights would be greatly appreciated!
Someone please just end me. It would be the merciful thing. Ive been at this for 8 hours! I found it... I f$^#@ found it.
<script defer="defer" src="/static/js/main.3362c51c.js"></script>
Mind the missing leading slash, it was using root as the path instead of a local path.
<script defer="defer" src="static/js/main.3362c51c.js"></script>