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

less parser fails with UIKIT 3 less files #639

Open
juergenweb opened this issue Jul 21, 2018 · 3 comments
Open

less parser fails with UIKIT 3 less files #639

juergenweb opened this issue Jul 21, 2018 · 3 comments

Comments

@juergenweb
Copy link

juergenweb commented Jul 21, 2018

Fatal error: Uncaught Exception: parse error: failed at `@{property}: e(@replace-src);` css/../node_modules/uikit/src/less/components/mixin.less on line 19 in C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc.php:3552 Stack trace: #0 C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc.php(2363): lessc_parser->throwError() #1 C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc.php(119): lessc_parser->parse('//\n// Component...') #2 C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc.php(784): lessc->tryImport(Array, Object(stdClass), Object(stdClass)) #3 C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc.php(160): lessc->compileProp(Array, Object(stdClass), Object(stdClass)) #4 C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc.php(145): lessc->compileImportedProps(Array, Object(stdClass), Object(stdClass), Object(lessc_parser), 'css/../node_mod...') #5 C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc.php(784): lessc->tryImport(Array, Object(stdClass), Object(stdClass)) #6 C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc in C:\xampp\htdocs\cms\vendor\leafo\lessphp\lessc.inc.php on line 3552

This is the responsible line in the mixin.less file on line 19:

@{property}: e(@replace-src);

Best regards

@emanueljacob
Copy link

Any updates on this? I ran into the same issue:

I added the uikit directories.
I tried compiling using "uikit.less" as entryfile.

Fatal error: Uncaught Exception: parse error: failed at `@{property}: e(@replace-src);` /mydirectory/vendor/uikit/uikit/src/less/components/mixin.less on line 19 in /mydirectory/vendor/leafo/lessphp/lessc.inc.php:3553 Stack trace: #0 /mydirectory/vendor/leafo/lessphp/lessc.inc.php(2364): lessc_parser->throwError() #1 /mydirectory/vendor/leafo/lessphp/lessc.inc.php(120): lessc_parser->parse('//\n// Component...') #2 /mydirectory/vendor/leafo/lessphp/lessc.inc.php(785): lessc->tryImport(Array, Object(stdClass), Object(stdClass)) #3 /mydirectory/vendor/leafo/lessphp/lessc.inc.php(161): lessc->compileProp(Array, Object(stdClass), Object(stdClass)) #4 /mydirectory/vendor/leafo/lessphp/lessc.inc.php(146): lessc->compileImportedProps(Array, Object(stdClass), Object(stdClass), Object(lessc_parser), '/app/web/web/ap...') #5 /mydirectory/vendor/leafo/lessphp/lessc.inc.php(78 in /mydirectory/vendor/leafo/lessphp/lessc.inc.php on line 3553

Seems like when compiling Uikit, the parser failes when calling the mixins.less.
This does not happen when using lessjs itself.
Andy ideas or a little quickfix for this, I can implement by myself?

See further informations about Uikit 3:
Uikit 3 Documentation
Uikit 3 Less Directory on Github

@AlekVolsk
Copy link

@ecksite are there any progress or have you abandoned the idea of compiling in php?

@Bowriverstudio
Copy link

Just ran into this issue aswell

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

4 participants