# TypeError, tried everything and still cannot fix

**URL:** <https://discourse.aurelia.io/t/typeerror-tried-everything-and-still-cannot-fix/4562>\
**Category:** Uncategorized\
**Created:** [January 19, 2022, 11:39am UTC](https://discourse.aurelia.io/t/typeerror-tried-everything-and-still-cannot-fix/4562 "2022-01-19T11:39:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ignatoff](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@Ignatoff](https://discourse.aurelia.io/u/Ignatoff)\
**Post date:** [January 19, 2022, 11:39am UTC](https://discourse.aurelia.io/t/typeerror-tried-everything-and-still-cannot-fix/4562/1 "2022-01-19T11:39:32Z")

</div>

Hello dear Aurelia users,  
I’m brand new to the platform and first timer with Aurelia. However, whenever I try to do something, as even the Hello World and keeps on giving me errors, especially when installing aurelia-cli or when I try to run it. I have tried with --watch and -save but it doesn’t help. If someone has an idea how to fix it, please reply to me

 ![Screenshot (158)](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/2X/9/9e62171a0b3d3961cdc74a1f462e84393085646b.png)

---

<div class="post-metadata">

**Author:** ![Ignatoff](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@Ignatoff](https://discourse.aurelia.io/u/Ignatoff)\
**Post date:** [January 19, 2022, 11:40am UTC](https://discourse.aurelia.io/t/typeerror-tried-everything-and-still-cannot-fix/4562/2 "2022-01-19T11:40:25Z")

</div>

![Screenshot (159)](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/2X/8/857cef152f01bd4339c3a2e2b4866bdd3cb7aa9d.jpeg)

---

<div class="post-metadata">

**Author:** ![Ignatoff](https://avatars.discourse-cdn.com/v4/letter/i/b9bd4f/32.png) [@Ignatoff](https://discourse.aurelia.io/u/Ignatoff)\
**Post date:** [January 19, 2022, 11:50am UTC](https://discourse.aurelia.io/t/typeerror-tried-everything-and-still-cannot-fix/4562/4 "2022-01-19T11:50:58Z")

</div>

TypeError: Cannot read properties of undefined (reading ‘loader’)  
at module.exports (C:\Users\User\test\webpack.config.js:203:47)  
at loadConfigByPath (C:\Users\User\test\node\_modules\webpack-cli\lib\webpack-cli.js:1745:27)  
at async WebpackCLI.loadConfig (C:\Users\User\test\node\_modules\webpack-cli\lib\webpack-cli.js:1830:30)  
at async WebpackCLI.createCompiler (C:\Users\User\test\node\_modules\webpack-cli\lib\webpack-cli.js:2185:18)  
at async Command. (C:\Users\User\test\node\_modules@webpack-cli\serve\lib\index.js:98:30)  
at async Promise.all (index 1)  
at async Command. (C:\Users\User\test\node\_modules\webpack-cli\lib\webpack-cli.js:1672:7)  
Finished ‘run’

---

<div class="post-metadata">

**Author:** ![manks](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/manks/32/1995_2.png) [@manks](https://discourse.aurelia.io/u/manks)\
**Post date:** [January 19, 2022, 9:32pm UTC](https://discourse.aurelia.io/t/typeerror-tried-everything-and-still-cannot-fix/4562/5 "2022-01-19T21:32:54Z")

</div>

Ignore those audit messages for now. What happens when you just run the application:

```auto
$ webpack-dev-server

```

---

<div class="post-metadata">

**Author:** ![MaximBalaganskiy](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/maximbalaganskiy/32/831_2.png) [@MaximBalaganskiy](https://discourse.aurelia.io/u/MaximBalaganskiy)\
**Post date:** [January 21, 2022, 6:17am UTC](https://discourse.aurelia.io/t/typeerror-tried-everything-and-still-cannot-fix/4562/6 "2022-01-21T06:17:52Z")

</div>

Something wrong with webpack.config imho
