You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AOT Build silent fail using scss file templates named 'xxxx.TS.scss' #8904
ng new tsbug --style=scss
cd tsbug
mv src/app/app.component.scss src/app/app.component.ts.scss
sed -i 's/.scss/.ts.scss/g' src/app/app.component.ts
ng build --aot
(it just creates a new ng app using scss file named app.component.ts.scss, then AOT-builds it)
=> AOT build fails silently
nb1: ng build without --aot works like a charm.
nb2: this only happens when file is named xxx.TS.scss, see details below
nb3: this only happens with files that require a loader (not on html, or css ... i originally had this because i use a loader for .pug template files) and not only for styleUrls, but also templateUrl
Observed behavior
AOT build fails silently
Desired behavior
I would expect it to build, or at least yield a build error
Mention any other details that might be useful (optional)
Everything works fine with loaders, as long as your file names do not contain.ts
See app.component.ts
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
styleUrls: ['./app.component.ts.scss'], // <==== this one fails silently on ng build --aot
// styleUrls: ['./app.component.scss'] // <==== this one is OK
})
export class AppComponent {
}
i assume there must be somewhere in the cli a /\.ts/.test(filename) that requires a $, or something of that kind ?
changed the title [-]AOT Build silent fail using pug file templates named 'xxxx.TS.pug'[/-][+]AOT Build silent fail using scss file templates named 'xxxx.TS.scss'[/+]on Dec 16, 2017
Activity
[-]AOT Build silent fail using pug file templates named 'xxxx.TS.pug'[/-][+]AOT Build silent fail using scss file templates named 'xxxx.TS.scss'[/+]playerx commentedon Dec 18, 2017
yep, I've same silent error too
#8829
oguimbal commentedon Dec 18, 2017
@playerx Well, I knew I must not be alone to name files like that :) But I did not find your issue, despite a lot of search.
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.