# Aurelia-dialog 2.0.0-rc.5 error

**URL:** <https://discourse.aurelia.io/t/aurelia-dialog-2-0-0-rc-5-error/2160>\
**Category:** Help Requests\
**Created:** [January 23, 2019, 4:23am UTC](https://discourse.aurelia.io/t/aurelia-dialog-2-0-0-rc-5-error/2160 "2019-01-23T04:23:56Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [June 8, 2019, 1:54am UTC](https://discourse.aurelia.io/t/aurelia-dialog-2-0-0-rc-5-error/2160/21 "2019-06-08T01:54:14Z")

</div>

I sounds like something else. The code that caused error is the same with rc5 ☹

---

<div class="post-metadata">

**Author:** ![VagyokC4](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/vagyokc4/32/1532_2.png) [@VagyokC4](https://discourse.aurelia.io/u/VagyokC4)\
**Post date:** [June 8, 2019, 3:02am UTC](https://discourse.aurelia.io/t/aurelia-dialog-2-0-0-rc-5-error/2160/22 "2019-06-08T03:02:49Z")

</div>

> [@ajoslin103](#):
>
> ~

So this error was caused by a NEW install where webpack was set to ^4.28.0, which installed 4.33.0. So at some point in time we need to address this webpack version 4.28 issue

Also for others using an older version upgrading to RC5/6 w/ webpack, the following is NO LONGER NEEDED:

```auto
    new ModuleDependenciesPlugin({
      'aurelia-dialog': ['./resources/ux-dialog', './resources/ux-dialog-body', './resources/ux-dialog-header', './resources/ux-dialog-footer', './resources/attach-focus',]
    }),

```

Using 4.28.4 with RC6 + no more ModuleDependenciesPlugin = working Aurelia dialog

---

<div class="post-metadata">

**Author:** ![VagyokC4](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/vagyokc4/32/1532_2.png) [@VagyokC4](https://discourse.aurelia.io/u/VagyokC4)\
**Post date:** [June 8, 2019, 4:04am UTC](https://discourse.aurelia.io/t/aurelia-dialog-2-0-0-rc-5-error/2160/23 "2019-06-08T04:04:36Z")

</div>

> [@VagyokC4](#):
>
> ```auto
> ERROR in ./node_modules/aurelia-dialog/dist/native-modules/aurelia-dialog.js 19:29
> Module parse failed: Unexpected token (19:29)
> You may need an appropriate loader to handle this file type.
> | 
> | var RENDERRERS = {
> > ux: function () { return import('./ux-dialog-renderer.js').then(function (m) { return m.DialogRenderer; }); },
> | native: function () { return import('./native-dialog-renderer.js').then(function (m) { return m.NativeDialogRenderer; }); }
> | };
> @ ./src/main.ts
> @ ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js
> @ multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper
> 
> ```

Latest Update: If you get error above, the following work-around should get you back running with webpack \> 4.28.4.

```auto
npm install --save-dev acorn && npm dedupe && npm uninstall acorn

```

Using this workaround I was able to get webpack 4.33.0 + RC6 compiling and working no problem 🙂

[Previous page](https://discourse.aurelia.io/t/aurelia-dialog-2-0-0-rc-5-error/2160.md?page=1)
