aurelia / loader-webpack

An implementation of Aurelia's loader interface to enable webpack.
MIT License
26 stars 10 forks source link

Building fails #29

Closed jods4 closed 7 years ago

jods4 commented 7 years ago

Inside a clean empty folder, running

git clone https://github.com/aurelia/loader-webpack.git
yarn install
yarn run build

fails.

First issue I had was a problem with yarg dependency from aurelia-tools and then build:compile works but there is an error with build:doc

Unable to shape the aurelia-loader-webpack.d.ts file.
ENOENT: no such file or directory, open 'C:\xxxx\aurelia-loader-webpack\dist\doc-temp\aurelia-loader-webpack.d.ts'
jods4 commented 7 years ago

OK I think I figure it out, I think this is a bug in yarn, which doesn't properly support github:aurelia/tools#cli as a dependency (yet)? I thought this was working in yarn as I saw a yarn.lock file at the root. A workaroudnd is to specify the dependency as https://github.com/aurelia/tools.git#cli, which seem to work.