ember-cli-compass-compiler
ember-cli-compass-compiler copied to clipboard
CompassCompiler error due to invalid Compass option
I am seeing the following error when building with ember-cli-compass-compiler after upgrading ember-cli recently.
[CompassCompiler]Error: invalid option: --tree-type=styles
It looks like this is because Ember Cli 's Broccoli started to add a new option value treeType: 'styles'
when packaging styles. (I believe in v3.26.0). ember-cli-compass-compiler
passes this option into broccoli-compass-compiler
, which generates the compass command.
Since compass does not need the new option treeType
that is provided by ember-cli, would it be possible to omit/remove the field from compassOptions
before it gets passed into compileCompass()?
To verify this is related to the error, I tried delete compassOptions.treeType
before compileCompass(inputTrees, compassOptions)
is called in index.js locally, and the app was built successfully.
I will look into it. In the meantime, can you try setting treeType
to undefined
in compassOptions
?
thank you!
I did try setting treeType
to undefined
in compassOptions
in new EmberApp()
, but unfortunately the values get overwritten by inputOptions
.
I also tried some other workarounds like setting treeType as a read-only property, but it seems it has no impact on how the options merge() works.