Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): output webpack-dev-server and web…
Browse files Browse the repository at this point in the history
…pack-dev-middleware errors

With this change we configure `webpack-dev-middleware` and `webpack-dev-server` to print errors to the console, which previously were not displayed. This is because both of these libraries log/emit errors using the logger and the compilation API.

Certain errors such as the one below, were being swallowed during `ng serve`.
```
An unhandled exception occurred: Prevent writing to file that only differs in casing or query string from already written file.
This will lead to a race-condition and corrupted files on case-insensitive file systems.
/home/circleci/ng/aio/dist/generated/docs/api/router/Routes.json
/home/circleci/ng/aio/dist/generated/docs/api/router/ROUTES.json
```

(cherry picked from commit b55fc08)
  • Loading branch information
alan-agius4 committed Apr 23, 2021
1 parent 4952d5e commit 6b05a69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function getDevServerConfig(
hot: hmr,
proxy: addProxyConfig(root, proxyConfig),
contentBase: false,
logLevel: 'silent',
logLevel: 'error',
} as Configuration & { logLevel: Configuration['clientLogLevel'] },
};
}
Expand Down

0 comments on commit 6b05a69

Please sign in to comment.