Open christophmayrhofer opened 7 years ago
I am trying to get it work with my webpack setup.
Repo: https://github.com/christophmayrhofer/cc-client
I get the following error:
TypeError: Cannot read property 'fetch' of undefined
I tried:
<require from="./app.css!bind" as="styles"></require>
and
<require from="./app.css!module!bind" as="styles"></require>
I get the same error for both.
Would be great if you could have a look at the repo and tell me what's wrong.
Using import styles from './app.css'
import styles from './app.css'
in the js file and the ${styles.xxx} in the html works just fine.
Sorry, but I don't have much time to spare right now. I haven't actually used this with webpack, so it's certainly possible that it needs some changes. PRs welcome.
I am trying to get it work with my webpack setup.
Repo: https://github.com/christophmayrhofer/cc-client
I get the following error:
TypeError: Cannot read property 'fetch' of undefined
I tried:
<require from="./app.css!bind" as="styles"></require>
and
<require from="./app.css!module!bind" as="styles"></require>
I get the same error for both.
Would be great if you could have a look at the repo and tell me what's wrong.
Using
import styles from './app.css'
in the js file and the ${styles.xxx} in the html works just fine.