Uncaught Error: DialogRenderer must implement getDialogContainer()

“aurelia-dialog”: “^2.0.0”
webpack
sass
babel
docker

I’m only getting this error in Production, not in Development. I have no idea how to track down the issue.

This was the issue:

if (environment.testing) {
aurelia.use.plugin(PLATFORM.moduleName(‘aurelia-dialog’));
}

I moved it outside of the if statement and all is good!