News Feed
Jobs Feed
Sections




News Archive
ServerGrove Blog:
Error "Cannot find module 'less'" with Symfony2, Assetic and Twitter Bootstrap
March 19, 2012 @ 12:36:25

On the ServerGrove blog, there's a quick post with a handy tip for the Symfony2 + Assetic users out there - how to get it to recognize the "less" module.

Unfortunately the Symfony documentation does not provide any details on how to configure Assetic to use LESS. There is a blog post by Dustin Dobervich that gives some pointers, but after following the instructions, Assetic issued the following error: Cannot find module 'less'. We searched around without much success. After several tries, we nailed the configuration.

It's an easy two-step process: first you be sure you have "npm" (the package manager) installed on your system, then you modify your Symfony app.yml file to point to the Node modules path.

0 comments voice your opinion now!
twitter bootstrap module less css yml setting node module


blog comments powered by Disqus

Similar Posts

Evan Coury's Blog: Sharing a database connection across modules in Zend Framework 2

PHPImpact Blog: TDD with Symfony: The first test always fails

Justin Ireland's Blog: Real-Time Embedded User Interfaces Using HTML/CSS/js and Websockets

Ryan Grove's Blog: Minify combines, minifies &caches JavaScript & CSS files to speed up page loads

PHPBuilder.com: Simulating Graphical Charts with XHTML/CSS


Community Events











Don't see your event here?
Let us know!


opinion framework language testing phpunit example functional zendframework2 series code interview introduction release composer tool database object podcast development community

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework