<!-- Please don't delete this template otherwise your issue will be closed immediately --> <!-- Before creating an issue please make sure you are using the latest version of webpack. --> ### Bug report `trustedTypesPolicyName` option breaking with webpack v5.88.0 <!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. --> <!-- https://github.com/webpack/webpack/discussions --> <!-- https://stackoverflow.com/questions/ask?tags=webpack --> <!-- https://gitter.im/webpack/webpack --> <!-- Issues which contain questions or support requests will be closed. --> ### Actual Behavior <img width="1512" alt="Screenshot 2023-08-05 at 8 25 05 AM" src="https://github.com/webpack/webpack-dev-server/assets/46647141/d3cee866-40e9-430f-8a9d-2cec34c2737d"> <!-- Explain exactly how it behaves --> ### Expected Behavior - Overlay should open. <!-- "It should work" is not a helpful explanation --> <!-- Explain exactly how it should behave --> ### How Do We Reproduce? - Upgrade webpack to v5.88.0 in this repo - Go to `examples/client/trusted-types-overlay` - Run `npx webpack serve --open` - See error in console. <!-- A great way to do this is to provide your configuration via a GitHub repository --> <!-- The most helpful is a minimal reproduction with instructions on how to reproduce --> <!-- Repositories with too many files or large `webpack.config.js` files are not suitable --> <!-- Please only add small code snippets directly into this issue --> <!-- https://gist.github.com is a good place for longer code snippets --> <!-- If your issue is caused by a plugin or loader, please create an issue on the loader/plugin repository instead --> ### Please paste the results of `npx webpack-cli info` here, and mention other relevant information