-
Notifications
You must be signed in to change notification settings - Fork 12k
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
less-loader break change and cause error in @angular/cli 6.0 #10430
Comments
the same issues |
Hi @filipesilva , any update on this issue? it still not work on latest version of angular-cli |
the same issues |
According the the |
@clydin yes, but the angular cli does not provide config for less-loader yet, it will block users to upgrade to it since less file will no longer work now. |
the same issue |
- link [#10430](angular/angular-cli#10430)
- link [#10430](angular/angular-cli#10430)
We strive to keep our dependencies up to date and in the case of Less, we do defer to their deprecation policy. The I tried following the example @clydin linked to:
Then I ran
So it seems like the function is being loaded and works. If using |
@filipesilva We can not change |
@vthinkxie I see how that is problematic on your side. Let me reopen to discuss further. Will bring it up with the team. |
@filipesilva Thanks! |
hi @filipesilva maybe @vthinkxie is right. ng cli should be more simple and configurable, adaptable to different pro, there are a thousand pro in a thousand developer's way, as a thousand hamlets in a thousand people's eyes. |
npm install [email protected] -g
lessc node_modules/ng-zorro-antd/src/ng-zorro-antd.less ./src/styles.css |
anyone keep up with this issue? |
Just ran into the same thing. This is a blocker for our upgrade to Angular 6. |
Sorry, this was unintentional breaking change in Angular 6. We will check if we can easily enable the Less inlineJavascript option so that a 6.x release unblocks you migrating to 6. However, since this feature is deprecated upstream from us, it will still go away in a future version of Angular CLI when Less no longer supports it. At that time (or if we determine it's too much effort to fix in Angular 6), we find that it's hard to fix, your options will be: If you're willing to go off the supported path, it's possible to add a |
angular/angular-cli#10430 has been fixed and shipped since @angular/cli 6.2.0. It is unecessary to lock less at version 2
angular/angular-cli#10430 has been fixed and shipped since @angular/cli 6.2.0. It is unecessary to lock less at version 2
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
Step 1
install
@angular/cli 6.0
versionStep 2
run
ng new next-cli --style=less
Step 3
copy the follow less code and paste it into
style.less
run
ng serve
Observed behavior
the less inline javascript works error in
@angular/cli 6.0
versionit works well in
@angular/cli 1.x
versionDesired behavior
make
less-loader
work fine as before in 6.0 versionor provide configuration to set less options in
angular.json
Mention any other details that might be useful (optional)
add
{ javascriptEnabled: true }
here can make it works again.https://github.com/angular/devkit/blob/3d809ef29cf690f9d2b37fa048710132a7a9e389/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts#L203
The text was updated successfully, but these errors were encountered: