Automatic publicPath is not supported in this browser

I also got this error while trying to use TsParticles yesterday. I created a particles.js

import {tsParticles} from 'tsparticles';
import particlesoptions from './particlesConfig.json';

tsParticles.load('tsparticles', particlesoptions);

then pull it into my bud.config.js

particles: ['@scripts/particles'],

then enqueue in setup.php

add_action('wp_enqueue_scripts', function () {
    bundle('particles')->enqueue();
}, 100);

I got the same error that broke all the JS “Uncaught Error: Automatic publicPath is not supported in this browser”

After doing some digging, I saw this happens with a few libraries so I tried setting my public path in bug.config.js like .setPublicPath(' ') this removed the error “publicPath is not supported” but threw other errors… that’s as far as I got. I needed up just moving on for the sake of time since this wasn’t necessary for me but curious how to solve this.

"Loading failed for the with source “http://powerassettech.local/vendor/null.cb1d9d.js”."
“Uncaught (in promise) ChunkLoadError: Loading chunk 642 failed.”

Note this only happens when I build but perfectly fine when running dev