Skip to content

Commit

Permalink
Angular: add emitDecoratorMetadata true as default
Browse files Browse the repository at this point in the history
This fixes dependency injection error SomeComponent(?, ?)
  • Loading branch information
kroeder committed Feb 2, 2020
1 parent c589b96 commit 85d5ce9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/angular/src/server/ts_config.ts
Expand Up @@ -14,6 +14,9 @@ export default function(configDir: string) {
const configFilePath = resolveTsConfig(path.resolve(configDir, 'tsconfig.json'));
return {
transpileOnly: true,
compilerOptions: {
emitDecoratorMetadata: true,
},
configFile: configFilePath || undefined,
};
}

0 comments on commit 85d5ce9

Please sign in to comment.