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
Add scss file in angular-cli.json "styles": ["styles/styles.scss"]
Launch app using ng serve -sm -ec
Inspect styles using chrome dev-tools.
Observed behavior
No actual scss file, only style.bundle.css where all the styles compiled.
Desired behavior
Actual scss file can be seen in the developer tools with the line number
Reacted by frederic jost, Yaroslav Admin, Panagiotis Kapros, Kamuran Sönecek, Marko Pohl, Aitor, oktav777, Michael Letcher, Brian Cerasuolo, Terry and 12 more
Dnia 5 stycznia 2018 04:42 Rukshan Lakshitha Dangalla <notifications@github.com> napisał(a): Recently I updated cli version 1.3.2 to 1.6.3 and after that I can't see scss source mapped file in developer tools in Chrome of Firefox . Versions : 1.6.3 Angular CLI: 1.6.3Node: 8.9.3OS: win32 x64Angular: 5.0.0... animations, common, compiler, compiler-cli, core, forms... http, platform-browser, platform-browser-dynamic... platform-server, router@angular/cli: 1.6.3@angular/language-service 4.4.6@angular-devkit/build-opt 0.0.36@angular-devkit/core: 0.0.22@angular-devkit/schemati 0.0.42@ngtools/json-schema: 1.1.0@ngtools/webpack: 1.9.3@schematics/angular: 0.1.11@schematics/schematics: 0.0.11typescript: 2.4.2webpack: 3.10.0 Repro steps Create new angular app using ng new sample-app Add scss file in angular-cli.json "styles": ["styles/styles.scss"] Launch app using ng serve -sm -ec Inspect styles using chrome dev-tools. Observed behavior No actual scss file, only style.bundle.css where all the styles compiled. zasobygwp.pl Desired behavior Actual scss file can be seen the developer tools with the line number zasobygwp.pl — You are receiving this because you are subscribed to this thread. Reply to this email directly, zasobygwp.pl view it on GitHub , or zasobygwp.pl mute the thread .
Reacted by Michael Letcher, LinboLen, Yaroslav Admin, Slava and Nick M
I've got a bootstrap.less (copy from ~/bootstrap/less/bootstrap.less) in my app folder that I've added to the angular-cli.json
Which when I run ng serve -sm -ec -env=mock shows source maps for my components but not for my complied global less files imported from the angular-cli.json
So the fix they mention about removing ~ will not work for me...
@lazysergey Right. You might want to try #issuecomment-392316835 who had a hack working for 1.7.4. I would recommend getting up to 6, though. The next minor patch should have the fix in.
@ajspera were you able to get smaps to work? Is there somewhere I could read up on how to get them to work properly? I've never actually seen them work in Angular.
@BenRacicot Hmm, they said it would be in this past patch release but I don't see the commit in branch 6.2.x. It's on master, so it's in the maintainers' hands at this point. If you are desperate, you can make the changes from the commit mentioned above in your installation's source. It's only 2 lines.
Activity
rukshandangalla commentedon Jan 8, 2018
@clydin any update on this?
michael-letcher commentedon Jan 11, 2018
Source map not working for LESS files
I have the same issue with Less files too.
The component LESS files appear, but the styles brought in via the CLI are not.
Versions
Sadlowski commentedon Jan 13, 2018
michael-letcher commentedon Jan 15, 2018
I've found that it is actually working for me, but just not for Bootstrap.
We're building bootstrap manually and therefore not using the default bootstrap.less found in the LESS folder.
smlombardi commentedon Jan 17, 2018
It does not show references to my project's scss files nor to bootstrap 4's scss files. Only to styles.bundle.css.
michael-letcher commentedon Jan 17, 2018
My issues is with Bootstrap 3 and LESS
I've got a bootstrap.less (copy from ~/bootstrap/less/bootstrap.less) in my app folder that I've added to the angular-cli.json
Which when I run
ng serve -sm -ec -env=mockshows source maps for my components but not for my complied global less files imported from the angular-cli.jsonSo the fix they mention about removing
~will not work for me...smlombardi commentedon Jan 17, 2018
I am not even using
~we use:The css is complied and works for all of these, but no source maps.
michael-letcher commentedon Jan 17, 2018
@smlombardi Yeah, seems like a bug from at least 1.6.2 onwards
dhvidding commentedon Jan 17, 2018
I've had this problem from 1.5 onwards
rukshandangalla commentedon Jan 21, 2018
As I can see many folks have this issue. What can we do about this?
michael-letcher commentedon Jan 23, 2018
1.6.5 didn't solve the issue for me. (LESS)
smlombardi commentedon Jan 23, 2018
This is making it very hard to work and debug css styling issues.
73 remaining items
fix(@angular-devkit/build-angular): load style source maps inline so …
lazysergey commentedon Aug 27, 2018
@ajspera this won't fix angular-cli 1.7.4, am I right? only new 6.x.x?
ajspera commentedon Aug 27, 2018
@lazysergey Right. You might want to try #issuecomment-392316835 who had a hack working for 1.7.4. I would recommend getting up to 6, though. The next minor patch should have the fix in.
BenRacicot commentedon Sep 11, 2018
@ajspera were you able to get smaps to work? Is there somewhere I could read up on how to get them to work properly? I've never actually seen them work in Angular.
ajspera commentedon Sep 11, 2018
@BenRacicot Hmm, they said it would be in this past patch release but I don't see the commit in branch 6.2.x. It's on master, so it's in the maintainers' hands at this point. If you are desperate, you can make the changes from the commit mentioned above in your installation's source. It's only 2 lines.
BenRacicot commentedon Sep 11, 2018
Awesome thanks for replying.
ritwickdey commentedon Oct 1, 2018
Still
sourceMap/extractCSSis not working for component specific styleswaqasdotnet commentedon Oct 13, 2018
@metasong's solution is working for Angular 6+ projects
camsong commentedon Nov 13, 2018
Any update on this? @metasong's solution doesn't work on component style.
Pls support LESS source map!!! This is suck a basic feature.
camsong commentedon Nov 13, 2018
@clydin @hansl guys, I believe this is not fixed in version 7.1.0, why close this issue?
imkremen commentedon Nov 13, 2018
@camsong It works fine for me in version 7.0.4
This issue only about SCSS source maps.
JWess commentedon Nov 13, 2018
It's working for me on version 7.0.3.
angular-automatic-lock-bot commentedon Sep 8, 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.
fix(@angular-devkit/build-angular): load style source maps inline so …