# Dumber issue with htmlparser2

**URL:** <https://discourse.aurelia.io/t/dumber-issue-with-htmlparser2/5123>\
**Category:** Help Requests\
**Created:** [March 17, 2023, 2:46pm UTC](https://discourse.aurelia.io/t/dumber-issue-with-htmlparser2/5123 "2023-03-17T14:46:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsrdjan](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bsrdjan/32/2009_2.png) [@bsrdjan](https://discourse.aurelia.io/u/bsrdjan)\
**Post date:** [March 17, 2023, 2:46pm UTC](https://discourse.aurelia.io/t/dumber-issue-with-htmlparser2/5123/1 "2023-03-17T14:46:23Z")

</div>

We have one alpha.41 typescript + dumber app and since recently, after fresh npm install, it shows following build error

```auto
[dumber] 8.0.1 htmlparser2
[dumber] Tracing failed for node_modules/htmlparser2/lib/esm/index.js
[dumber] SyntaxError: unknown file: Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`.
  57 | return getFeed(parseDOM(feed, options));
  58 | }
> 59 | export * as DomUtils from "domutils";
     | ^^^^^^^^^^^^^
  60 | // Old name for DomHandler
  61 | export { DomHandler as DefaultHandler };
  62 |

```

Anyone have seen it before or any ideas how to fix?

---

<div class="post-metadata">

**Author:** ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)\
**Post date:** [March 19, 2023, 9:43pm UTC](https://discourse.aurelia.io/t/dumber-issue-with-htmlparser2/5123/2 "2023-03-19T21:43:54Z")

</div>

Latest Aurelia is 2.0.0-beta.2, I had no problem to fire it up.  
Project was created with `npx makes aurelia new-project-name -s dumber,typescript`.

---

<div class="post-metadata">

**Author:** ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)\
**Post date:** [March 19, 2023, 11:20pm UTC](https://discourse.aurelia.io/t/dumber-issue-with-htmlparser2/5123/3 "2023-03-19T23:20:57Z")

</div>

Oh, I think I understand your issue now.  
Your app has latest htmlparser2 as a dep, which causes dumber to fail. I will test that.

---

<div class="post-metadata">

**Author:** ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)\
**Post date:** [March 19, 2023, 11:31pm UTC](https://discourse.aurelia.io/t/dumber-issue-with-htmlparser2/5123/4 "2023-03-19T23:31:08Z")

</div>

I have no problem running htmlparser2 either. Can you share your full console log? And your package.json if possible?

```auto
huocp@Chunpengs-MacBook-Pro ~/p/m2> npm start

> m2@0.1.0 start
> gulp

[dumber] Starting dumber bundler v2.1.1 https://dumber.js.org
[10:27:34] Using gulpfile ~/playground/m2/gulpfile.js
[10:27:34] Starting 'default'...
[10:27:34] Starting 'clean'...
[10:27:34] Finished 'clean' after 5 ms
[10:27:34] Starting 'build'...
[dumber] 2.0.0-beta.2 @aurelia/runtime-html
[dumber] 2.0.0-beta.2 aurelia
[dumber] 8.0.1 htmlparser2
[dumber] 2.5.0 tslib
[dumber] 2.0.0-beta.2 @aurelia/fetch-client
[dumber] 2.0.0-beta.2 @aurelia/kernel
[dumber] 2.0.0-beta.2 @aurelia/metadata
[dumber] 2.0.0-beta.2 @aurelia/platform
[dumber] 2.0.0-beta.2 @aurelia/platform-browser
[dumber] 2.0.0-beta.2 @aurelia/runtime
[dumber] 2.3.0 domelementtype
[dumber] 5.0.3 domhandler
[dumber] 3.0.1 domutils
[dumber] 2.1.1 dumber
[dumber] 4.4.0 entities
[dumber] 2.0.0 dom-serializer
Update index.html with entry.bundle.js
[10:27:37] Write app-bundle.js
[10:27:37] Write entry.bundle.js
[10:27:37] Finished 'build' after 3.13 s
[10:27:37] Starting 'startServer'...

Dev server is started at: http://localhost:9000

[10:27:37] Finished 'startServer' after 10 ms
[10:27:37] Starting 'watch'...

```

---

<div class="post-metadata">

**Author:** ![bsrdjan](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bsrdjan/32/2009_2.png) [@bsrdjan](https://discourse.aurelia.io/u/bsrdjan)\
**Post date:** [March 20, 2023, 1:18pm UTC](https://discourse.aurelia.io/t/dumber-issue-with-htmlparser2/5123/5 "2023-03-20T13:18:39Z")

</div>

thanks, it works fine now also with .41, not reproducible any more
