Skip to content

Production pre-compile generates an error #6

@tsiedsma

Description

@tsiedsma

I've been testing your package and have run into an issue in my local and development environments.
Both systems produce the exact same error when trying to pre-compile assets for production use.

$ php artisan larasset:precompile --environment production

[InvalidArgumentException]
There are no commands defined in the "larasset" namespace.

Running the same command without the environment option does a successful pre-compile but does not minify or compress anything.

laravel.log entry:

[2014-12-01 15:55:06] false.ERROR: exception 'InvalidArgumentException' with message 'There are no commands defined in the "larasset" namespace.' in /vagrant/vendor/symfony/console/Symfony/Component/Console/Application.php:516
Stack trace:
#0 /vagrant/vendor/symfony/console/Symfony/Component/Console/Application.php(550): Symfony\Component\Console\Application->findNamespace('larasset')
#1 /vagrant/vendor/symfony/console/Symfony/Component/Console/Application.php(190): Symfony\Component\Console\Application->find('larasset:precom...')
#2 /vagrant/vendor/symfony/console/Symfony/Component/Console/Application.php(124): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /vagrant/artisan(59): Symfony\Component\Console\Application->run()
#4 {main} [] []

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions