jhnns / rewire-webpack

Dependency injection for webpack bundles
The Unlicense
121 stars 20 forks source link

Error: No module factory available for dependency type: Dependency #19

Closed scottburch closed 8 years ago

scottburch commented 8 years ago

I have created a small sandbox here that shows the error with minimal code https://github.com/scottburch/rewire-error To reproduce: npm install webpack

I have found that webpack 1.12.2 works, 1.12.3 does not.

scottburch commented 8 years ago

I thought I would copy this response from the webpack folks here so that others who search issues for rewire-webpack might see this also.

@jhnns This require a change to rewire-webpack. A Dependency must correctly have a constructor property on it's prototype. The Class property is not needed anymore.

scottburch commented 8 years ago

@jhnns I tested the newest master and it seems to work, looks like it just has not been published on NPM. If it is ready, please publish. Thanks.

jhnns commented 8 years ago

Thank you for reporting it. This has been fixed with 1.0.1