Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack 1.12 support :)? #16

Closed
moimikey opened this issue Nov 7, 2015 · 3 comments
Closed

webpack 1.12 support :)? #16

moimikey opened this issue Nov 7, 2015 · 3 comments

Comments

@moimikey
Copy link

moimikey commented Nov 7, 2015

hola @jhnns,

wanted to know what you make of this:

12:27 PM mshertzberg@forge locale2 master ? webpack                                                                 1 ↵ 0.12.7
Error: No module factory available for dependency type: Dependency
    at Compilation.addModuleDependencies (/Users/mshertzberg/Git/locale2/node_modules/webpack/lib/Compilation.js:180:20)
    at Compilation.processModuleDependencies (/Users/mshertzberg/Git/locale2/node_modules/webpack/lib/Compilation.js:170:7)
    at Compilation.<anonymous> (/Users/mshertzberg/Git/locale2/node_modules/webpack/lib/Compilation.js:319:11)
    at /Users/mshertzberg/Git/locale2/node_modules/webpack/lib/Compilation.js:123:4
    at Array.forEach (native)
    at callback (/Users/mshertzberg/Git/locale2/node_modules/webpack/lib/Compilation.js:122:12)
    at Compilation.<anonymous> (/Users/mshertzberg/Git/locale2/node_modules/webpack/lib/Compilation.js:140:10)
    at DependenciesBlock.<anonymous> (/Users/mshertzberg/Git/locale2/node_modules/webpack/lib/NormalModule.js:115:10)
    at DependenciesBlock.onModuleBuild (/Users/mshertzberg/Git/locale2/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:310:10)
    at nextLoader (/Users/mshertzberg/Git/locale2/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:275:25)
    at /Users/mshertzberg/Git/locale2/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
    at Storage.finished (/Users/mshertzberg/Git/locale2/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
    at /Users/mshertzberg/Git/locale2/node_modules/webpack/node_modules/enhanced-resolve/node_modules/graceful-fs/graceful-fs.js:76:16
    at fs.js:334:14
    at /Users/mshertzberg/Git/locale2/node_modules/webpack/node_modules/enhanced-resolve/node_modules/graceful-fs/graceful-fs.js:42:10
    at FSReqWrap.oncomplete (fs.js:95:15)
var RewirePlugin = require('rewire-webpack')

module.exports = {
  devtool: 'eval',
  entry: [
    './test.js',
    './node_modules/browserstack-tape-reporter/index.js'
  ],
  output: {
    path: __dirname,
    filename: 'test-bs.bundle.js'
  },
  plugins: [
    new RewirePlugin()
  ],
  node: {
    fs: 'empty'
  }
}

i've been trying for a day now to get webpack + rewire + browserstack to work. getting very close.

thanks

@RSO
Copy link
Contributor

RSO commented Nov 9, 2015

I can confirm that this issue is introduced in the latest version of Webpack, to be specific, this commit: webpack/webpack@5acfacf

I'll try and see if I can find a fix.

RSO pushed a commit to Hacker0x01/rewire-webpack that referenced this issue Nov 9, 2015
As of webpack/webpack@5acfacf `.Class`
webpack is using `Dependency::constructor` over `Dependency::Class`. I
decided to keep the `.Class` for backwards compatibility.

Fixes jhnns#16
@jhnns
Copy link
Owner

jhnns commented Nov 9, 2015

@moimikey thx for reporting this.
@RSO thx for helping out. I'll merge and publish this asap.

@moimikey
Copy link
Author

moimikey commented Nov 9, 2015

yaasssss kill that Class. thanks @RSO & @jhnns!

@jhnns jhnns closed this as completed in #18 Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants