linkedin / linkedin/css-blocks

Error with inherited state in htmlbars template

Open
#203 8 comments 0 reactions 1 assignee Claimed by @amiller-gh View on GitHub
Dominant language
TypeScript
Stars
6.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

I get the following error with the Ember addon when I try to extend a block with an state:

> TemplateError: Can not apply multiple states at the same time from the exclusive state group ":scope[state|error]"

```
/* block-1.block.css */
:scope[state|error] {
...
}

/* block-2.block.css */
@block-reference block1 from "block-1.block.css";
:scope {
extends: block1
}

/* block-2.hbs */


```
When the state is not inherited, the build is fine:
```
/* block-1.block.css */
:scope[state|error] {
...
}

/* block-1.hbs */


```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.