A Conventional Blog for Convention Based Coders

Are being driven nuts by the following error message when compiling a webpack aurelia project?

Error: No module factory available for dependency type: ContextElementDependency

Be driven no longer! The issue is usually caused by a dependency version not matching the parent version.

NPM, awesome as it is, has the annoying feature of not updating child dependencies when you execute npm update. All of the top-level packages will be updated, but the child ones will not.
Some packages, such as aurelia-templating-bindinghave a dependency on aurelia-binding, and while both are generally released together, aurelia-bindingis not typically defined as a top level package, so it doesn’t get updated when the parent does.