Skip to content
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

Grunt Less task breaks on compiling sprites.less generated from grunt-spritesmith #350

Open
vehdad opened this issue May 22, 2019 · 2 comments

Comments

@vehdad
Copy link

vehdad commented May 22, 2019

Sorry for opening issue but I am stuck with old app running number of grunt tasks, among others grunt-contrib-less for less files and grunt-spritesmith for building sprites.

After updating to the less 3.0.0 I updated to the grunt-contrib-less: 2.0.0 and spritesmith accordingly to the 6+ version.

When I run less task it breaks on sprites.less on line:
@spritesheet: 576px 576px '../../img/icons.png' @spritesheet-sprites;
with an error
[L472:C0] Cannot read property 'eval' of null

Running "less:dev" (less) task

src\assets\style\cando-ui\sprites.less: [L472:C0] Cannot read property 'eval' of null
Warning: Error compiling src/assets/style/style.less Use --force to continue.

All dependencies are met..

-- [email protected]
-- [email protected]
-- [email protected]
-- [email protected]

@vehdad
Copy link
Author

vehdad commented May 22, 2019

After some investigation, I think problem is in part where sprites.less is generated and not in this module. I apologize for opening issue here.

@vehdad vehdad closed this as completed May 22, 2019
@vehdad vehdad reopened this May 27, 2019
@vehdad
Copy link
Author

vehdad commented May 27, 2019

Sorry, It actually seems to be on this part at the end.

Task keeps breaking after all changes and even after grunt-spritesmith has been fixed and updated by owner.

Running "less:dist-app" (less) task

undefined: [Lundefined:Cundefined] Cannot read property 'eval' of null
Warning: Error compiling build/css/style/style.less Use --force to continue.

File style.less has only two lines - imports.

@import "my-ui/custom";
@import (inline) "css/bootstrap.css";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant