Skip to content

Syntax error during assetic:dump #454

@zsimaiof

Description

@zsimaiof

Hi.
i have just installed the bundle along LESS (official release with node.js by using npm install -g less) and i have already installed assetic bundle (i am using Symfony 2.8).
in the config.yml i configured assetic as stated in the instructions :

assetic:
filters:
less:
node: /usr/local/bin/node/node.js
node_paths: [/usr/local/lib/node_modules]
apply_to: ".less$"
cssrewrite: ~
braincrafted_bootstrap:
css_preprocessor: less

when i try to php app/console assetic:dump i get the following error :

[Assetic\Exception\FilterException]
An error occurred while running:
'/usr/local/bin/node/node.js' '/tmp/assetic_less7terOU'
Error Output:
/usr/local/bin/node/node.js: line 1: syntax error near unexpected token (' /usr/local/bin/node/node.js: line 1: var Node = function() {'

What is wrong????? Is it possible to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions