4

I have a package with Lightning Components metadata.

After converting to SFDX format using this command:

sfdx force:mdapi:convert -r ../src

the folder structure of the aura components is generated properly.

After trying to deploy it into a scratch org, i'm getting this error:

$ sfdx force:source:push -u chris1

ERROR running force:source:push:  Unexpected file found in package directory: /Users/tempflip/mm/payments/payments-sfdx/force-app/main/default/aura/BlackthornTerminal/BlackthornTerminalStyle.css.

The CCS file mentioned of course is part of the package, and it can be deployed using the metadata API.

If I delete the aura folder from force-app/main/default, I can deploy the code into the scratch org using the sames SFDX command.

Maybe this is happening because aura is not supported yet by SFDX? If it is supported, how can I fix this error?

1
  • Is this file BlackthornTerminalStyle.css already in your metadata folder ? Did you create it manually ? Commented Sep 13, 2017 at 8:34

1 Answer 1

3

Your css file does not have the correct name. For a component named BlackthornTerminal, it should be BlackthornTerminal.css. Try to rename it and push it again.

1
  • thanks for answer! These files are created by the Metadata API when retrieving the package; also, we are using these files to deploy the codebase, and it always goes through. Maybe this is a Metadata API version issue? Also, we are using CumulusCI for retrieving -- maybe it creates some non-standard file format? Commented Sep 14, 2017 at 16:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .