Problems with the CLI

#22

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

#23

Hi Alex,

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

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.

#24

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


{
  "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"
  ] 

}
1 Like
#25

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

Working perfectly. Thankyou Alex!

1 Like
#26

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

1 Like