# Aurelia.Dialog. Can not resolve "moduleId"

**URL:** <https://discourse.aurelia.io/t/aurelia-dialog-can-not-resolve-moduleid/1209>\
**Category:** Help Requests\
**Created:** [May 11, 2018, 6:17am UTC](https://discourse.aurelia.io/t/aurelia-dialog-can-not-resolve-moduleid/1209 "2018-05-11T06:17:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clmorales](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@clmorales](https://discourse.aurelia.io/u/clmorales)\
**Post date:** [May 11, 2018, 6:17am UTC](https://discourse.aurelia.io/t/aurelia-dialog-can-not-resolve-moduleid/1209/1 "2018-05-11T06:17:09Z")

</div>

For some reason the aurelia.dialog is not working in webpack only when build --env production. It works fine when run --watch. Error: Unhandled rejection Error: Can not resolve “moduleId”.

I have declare .plugin(PLATFORM.moduleName(‘aurelia-dialog’)) in main.ts.

Any help will be appreciated.
