Skip to content

migration from LESS2 (ng1) to LESS3 (ng6) allow to use option javascriptEnabled #11495

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

Closed
WuglyakBolgoink opened this issue Jul 7, 2018 · 2 comments

Comments

@WuglyakBolgoink
Copy link

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting

Area

- [x] devkit

can we merge this PR?
https://github.com/angular/devkit/pull/866/files

I try to migrate from ng1 to ng6. In our less files there are many mixins.
now I got error like:

ERROR in ./src/styles/main.less (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/less-loader/dist/cjs.js??ref--15-3!./src/styles/main.less)
Module build failed: 


    .transitionExt(top ease 250ms);
  ^
Inline JavaScript is not enabled. Is it set in your options?
      in /Users/dev/app/src/styles/core/base.less (line 239, column 4)

als temporary solution for back-compatibility is adding "javascriptEnabled:true" to less compiler.

is it possible to add in angular.json or package.json this option?

@clydin
Copy link
Member

clydin commented Jul 9, 2018

Duplicate of #10430

@clydin clydin marked this as a duplicate of #10430 Jul 9, 2018
@clydin clydin closed this as completed Jul 9, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants