-
Notifications
You must be signed in to change notification settings - Fork 12k
AOT Build silent fail using scss file templates named 'xxxx.TS.scss' #8904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yep, I've same silent error too |
@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. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
Run command
(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 belownb3: 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 alsotemplateUrl
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
i assume there must be somewhere in the cli a
/\.ts/.test(filename)
that requires a$
, or something of that kind ?The text was updated successfully, but these errors were encountered: