carteb / carte-blanche

An isolated development space with integrated fuzz testing for your components. See them individually, explore them in different states and quickly and confidently develop them.
https://www.youtube.com/watch?v=6g3-TQ6aaw8
MIT License
1.5k stars 47 forks source link

"SourcePlugin is not a constructor" #368

Closed kevinSuttle closed 7 years ago

kevinSuttle commented 8 years ago
plugins: [
   new SourcePlugin(),
   new ReactPlugin()
]
TypeError: SourcePlugin is not a constructor
    at Object.<anonymous> (/Users/kevinSuttle/Code/platform-ui-primitives/webpack.config.js:43:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at module.exports (/Users/kevinSuttle/Code/platform-ui-primitives/node_modules/webpack/bin/convert-argv.js:93:13)
    at Object.<anonymous> (/Users/kevinSuttle/Code/platform-ui-primitives/node_modules/webpack/bin/webpack.js:120:40)
"webpack": "^2.1.0-beta.15",
"webpack-dev-server": "^2.1.0-beta.0",
"webpack-validator": "^2.2.1"
mxstbr commented 8 years ago

Damn, can you try new SourcePlugin.default()?

hosmelq commented 8 years ago

I sent a pull request for this. #316

nikgraf commented 7 years ago

@mxstbr we should cut a new release 😄

mxstbr commented 7 years ago

Yeah, we should. Closing this for now since it'll be resolved with the next release!