Skip to content

Grunt aborts when running exec: #10125

@daanvdberg

Description

@daanvdberg

Preconditions

  1. Magento CE 2.1.5
  2. Luma is not installed
  3. Grunt has been set up according to: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/css_debug.html

Steps to reproduce

  1. Clean up and deploy static content
  2. run the grunt:exec command

Expected result

Symlinks to the source files are republished to the pub/static/frontend/<Vendor>/<theme>/<locale> directory, after which the grunt less command can be run.

Actual result

  1. grunt exec command aborts with the following error message:

>> [InvalidArgumentException]
>> There are no commands defined in the "dev:source-theme" namespace.
>> Exited with code: 1.
Warning: Task "exec:Ganges" failed. Use --force to continue.
Aborted due to warnings.

  1. I have then tried running "bin/magento dev:source-theme:deploy" which fails because the Processed Area is the Luma theme, which is not installed.

Processed Area: frontend, Locale: en_US, Theme: Magento/luma, File type: less.
[InvalidArgumentException]
Verify entered values of the argument and options. Unable to resolve the source file for frontend/Magento/luma/en_US/css/styles-m.less
dev:source-theme:deploy [--type="..."] [--locale="..."] [--area="..."] [--theme="..."] [file1] ... [fileN]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions