i was updating out project to the latest Angular 5 version and after some version adaptations it still failed. So i created a fresh new angular-project based on the current version (@angular/cli 1.5.0, @angular/* 5.0.0) and started to hunt down the problems.
It turned out, that e.g. using string interpolation in an Decorator does not get recognized anymore. Outside, e.g. in an console.log-output, it worked fine.
I tried it out on default generated AppComponent:
import { Component } from '@angular/core';
const name = 'app';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: [`./${name}.component.css`]
})
export class AppComponent {
title = 'app';
}
The result is a large exception where you can see that angular tries to locate the resources like:
src/
./${name}.component.css
.ts doesn't exist
Does anyone has a hint what went wrong here and/or can me point in the right direction?
Update: After a response from the angular-community, it seems more like an issue for @angular/cli / webpack.