# Problems with the CLI

**URL:** <https://discourse.aurelia.io/t/problems-with-the-cli/989>\
**Category:** Help Requests\
**Created:** [March 27, 2018, 3:04am UTC](https://discourse.aurelia.io/t/problems-with-the-cli/989 "2018-03-27T03:04:00Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 30, 2018, 10:49am UTC](https://discourse.aurelia.io/t/problems-with-the-cli/989/22 "2018-03-30T10:49:37Z")

</div>

Run is also discussed there as well.  
It’s a webpack 4.2 issue  
just have to run it with --watch  
[https://github.com/webpack/webpack/issues/6825](https://github.com/webpack/webpack/issues/6825)

---

<div class="post-metadata">

**Author:** ![si2030](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/si2030/32/275_2.png) [@si2030](https://discourse.aurelia.io/u/si2030)\
**Post date:** [March 30, 2018, 10:58am UTC](https://discourse.aurelia.io/t/problems-with-the-cli/989/23 "2018-03-30T10:58:28Z")

</div>

Hi Alex,

It runs however I am getting this error when it runs.

 ![working](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/1X/6728135c4300d1497933828da9c16fe99f7d7ebf.png)

The error is highlighted above in latter post.

It may well be an error with webpack.

This was all in the interests of trying to produce an issue I was having with custom template binding and aurelia-bootstrap.

I am now unable to get gitrun to work and now I find CLI is also particularly hard to get going. I would like to just show you the fact that you cannot update an aurelia-bootstrap typeahead box from within the custom template but bugger me if I cant get any of these options to work… This was the last problem I had and its turned out to be a show stopper.

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 30, 2018, 11:58am UTC](https://discourse.aurelia.io/t/problems-with-the-cli/989/24 "2018-03-30T11:58:52Z")

</div>

A-ha…  
ts-loader tries to compile all of the ts ahead of the time…  
modyfy webpack.config:  
`{ test: /\.tsx?$/, loader: "ts-loader" , options: { configFile : 'tsconfig.webpack.json' }},`  
and add tsconfig.webpack.json to root of your project with contents like this

```auto

{
  "compileOnSave": false,
  "compilerOptions": {
    "target": "es5",
    "module": "esnext",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "sourceRoot": "src",
    "sourceMap": true,
    "allowJs": true,
    "baseUrl": "src",
    "skipLibCheck": true,
    "lib": [
      "es2017", "dom"
    ]
  },
  "include": [
    "src"
  ] 

}

```

---

<div class="post-metadata">

**Author:** ![si2030](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/si2030/32/275_2.png) [@si2030](https://discourse.aurelia.io/u/si2030)\
**Post date:** [March 30, 2018, 11:23pm UTC](https://discourse.aurelia.io/t/problems-with-the-cli/989/25 "2018-03-30T23:23:12Z")

</div>

> [@Alexander-Taran](#):
>
> { test: /.tsx?$/, loader: “ts-loader” , options: { configFile : ‘tsconfig.webpack.json’ }},

I do love an “A-ha…” moment!

Working perfectly. Thankyou Alex!

---

<div class="post-metadata">

**Author:** ![eicthecat](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@eicthecat](https://discourse.aurelia.io/u/eicthecat)\
**Post date:** [May 11, 2019, 6:59pm UTC](https://discourse.aurelia.io/t/problems-with-the-cli/989/26 "2019-05-11T18:59:24Z")

</div>

this tip should be added to the VS template ! it’s a must have !!

[Previous page](https://discourse.aurelia.io/t/problems-with-the-cli/989.md?page=1)
