bryanrsmith / aurelia-binding-loader

An Aurelia loader for using any module directly from a view template
MIT License
11 stars 1 forks source link

TypeError: Cannot read property 'fetch' of undefined #3

Open christophmayrhofer opened 7 years ago

christophmayrhofer commented 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'

in the js file and the ${styles.xxx} in the html works just fine.

bryanrsmith commented 7 years ago

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.