Closed christophmayrhofer closed 7 years ago
This plugin was renamed some time back, and it looks like your project is trying to load the plugin using both names... Could you first remove .plugin('aurelia-css-modules-loader');
from your config, and make sure you've got aurelia-binding-loader
installed with your package manager, and not aurelia-css-modules-loader
?
Let me know if there's something else I can answer.
I am unable to use css modules in my repo: https://github.com/christophmayrhofer/cloudcam-client
When I add only !module or !bind to my css require I get the following error:
TypeError: Cannot read property 'fetch' of undefined at Promise.then._this2.modulesBeingLoaded.(anonymous function) (http://localhost:8080/scripts/aurelia.bundle.js:27001:60) at WebpackLoader._import (http://localhost:8080/scripts/aurelia.bundle.js:26998:18) at WebpackLoader.loadModule (http://localhost:8080/scripts/aurelia.bundle.js:27056:17) at WebpackLoader.loadAllModules (http://localhost:8080/scripts/aurelia.bundle.js:27043:23) at ViewEngine.importViewResources (http://localhost:8080/scripts/aurelia.bundle.js:4062:24) at ViewEngine.loadTemplateResources (http://localhost:8080/scripts/aurelia.bundle.js:4032:17) at http://localhost:8080/scripts/aurelia.bundle.js:3980:39
When I add !module!bind I get Cannot find module './bind'
And for !bind!module I get Cannot find module './module'
Here is my aurelia initializer:
and the webpack.config.js