Angular 4 + material 2 : AOT compilation fails with server rendering

265 Views Asked by At

One year after, this bug is still unsolved. When I import material 2 inside my angular 4 project, my AOT compilation is throwing me this insult :

/dist/ngfactory/node_modules/@angular/material/typings/index.ngfactory.ts:9
import * as i0 from '@angular/core';
^^^^^^

SyntaxError: Unexpected token import

If you have even a fraction of idea, I'm taking it! Thank you!

0

There are 0 best solutions below