Closed
Description
Bug Report or Feature Request (mark with an x
)
- [x] bug report
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
node v8.11.2
npm v5.6.0
OS: (irrelevant)
Repro steps
I am using @ngtools/webpack and webpack-contrib/copy-webpack-plugin and in that package this function uses virtual_file_system_decorator
s stat function and if I change that to
stat(path, callback) {
let result = this._webpackCompilerHost.stat(path);
if (result) {
callback(null, this._webpackCompilerHost.stat(path));
} else {
callback(path, undefined);
}
// commented out what came after https://github.com/angular/angular-cli/commit/da7daef34bbdd0dbfbe83f21f71d45996eeb8dab
// try {
// // tslint:disable-next-line:no-any
// callback(null, this._webpackCompilerHost.stat(path));
// }
// catch (e) {
// // tslint:disable-next-line:no-any
// callback(e, undefined);
// }
}
the error doesn't exist any more and everything compiles.
This happens when I upgraded from angular 6 to angular 7 which involved updating this package in the process.
The log given by the failure
ERROR in Patterns must be a string or an array of strings