I get following error on 'ng serve' command. I have just pulled this from git, deleted node_modules and package-lock file, ran npm install and then ng serve. I've no idea what this means and nobody else seemed to have this issue before
Error: TypeError: Cannot read property 'createUniqueName' of undefined
at
...\Web\Web\node_modules\@ngtools\webpack\src\transformers\replace_bootstrap.js:54:50
at Array.forEach (<anonymous>)
at standardTransform
(...\Web\Web\node_modules\@ngtools\webpack\src\transformers\replace_bootstrap.js:32:32)
at transformer (...\Web\Web\node_modules\@ngtools\webpack\src\transformers\make_transform.js:17:25)
replace_bootstrap.js:54:50 looks like this:
const idPlatformBrowser = ts.factory.createUniqueName('__NgCli_bootstrap_');
replace_bootstrap.js:32:32 is this:
entryModuleIdentifiers.forEach(entryModuleIdentifier => {
// Figure out if it's a `platformBrowserDynamic().bootstrapModule(AppModule)` call.
if (!(entryModuleIdentifier.parent
&& entryModuleIdentifier.parent.kind === ts.SyntaxKind.CallExpression)) {
return;
}
const callExpr = entryModuleIdentifier.parent;
if (callExpr.expression.kind !== ts.SyntaxKind.PropertyAccessExpression) {
return;