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

Got an errormessage #5

Closed
janstieler opened this issue Jun 12, 2014 · 1 comment
Closed

Got an errormessage #5

janstieler opened this issue Jun 12, 2014 · 1 comment

Comments

@janstieler
Copy link

Hi,
I put the code

@import "remixins.less";
@base-font-size-px: 10;

at the beginning of my less file. After I added this I got the errormessage

Fatal error: Uncaught exception 'Exception' with message 'parse error: failed at if (typeof rmxsBaseFontSize == 'undefined') rmxsBaseFontSize = @{base-font-size-px}; return (parseInt(px.replace(/(^\d+)(.+$)/i,'$1')) / rmxsBaseFontSize + 'rem') };` /Applications/XAMPP/xamppfiles/htdocs/kirbytextil/assets/less/remixins.less on line 5' in /Applications/XAMPP/xamppfiles/htdocs/kirbytextil/site/plugins/lessphp/less.inc.php:3460 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/kirbytextil/site/plugins/lessphp/less.inc.php(2273): lessc_parser->throwError() #1 /Applications/XAMPP/xamppfiles/htdocs/kirbytextil/site/plugins/lessphp/less.inc.php(121): lessc_parser->parse('// ===== REM UN...') #2 /Applications/XAMPP/xamppfiles/htdocs/kirbytextil/site/plugins/lessphp/less.inc.php(753): lessc->tryImport(Array, Object(stdClass), Object(stdClass)) #3 /Applications/XAMPP/xamppfiles/htdocs/kirbytextil/site/plugins/lessphp/less.inc.php(284): lessc->compileProp(Array, Object(stdClass), Object(stdClass)) #4 /Applications/XAMPP/xamppfi in /Applications/XAMPP/xamppfiles/htdocs/kirbytextil/site/plugins/lessphp/less.inc.php on line 3460

I don't understand what I'm doing wrong. I load the less through lessphp could this a problem?

Best regards

@janstieler
Copy link
Author

On the lesscss website I read that lessphp can not compile if javascript is used because there is no access to a JavaScript interpreter. I think this is the problem.
Than I have to use remixing short before I compile a final CSS for the website.

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