➜ autodll-webpack-plugin git:(master) ✗ npm run format
> autodll-webpack-plugin@0.3.6 format /Users/asafkatz/dev/autodll-webpack-plugin
> prettier-eslint --print-width 100 --trailing-comma es5 --single-quote --write "{{src,specs,scripts,examples/**/src,experiments/**/src}/**/*.{js,json,css},*.{js,json}}"
prettier-eslint-cli [ERROR]: There has been an unknown error when running the prettier-eslint CLI. If it's unclear to you what went wrong, then try this:
1. Run the script again with the LOG_LEVEL environment variable set to "trace"
2. Search existing issues on GitHub: https://github.com/prettier/prettier-eslint-cli/issues?utf8=%E2%9C%93&q=Cannot%20read%20property%20'Observable'%20of%20undefined
3. Make a minimal reproduction in a totally separate repository. You can fork this one: https://github.com/kentcdodds/prettier-eslint-cli-repro
4. Post an issue with a link to your reproduction to the issues on GitHub: https://github.com/prettier/prettier-eslint-cli/issues/new
/Users/asafkatz/dev/autodll-webpack-plugin/node_modules/prettier-eslint-cli/dist/uncaught-exception-handler.js:45
throw err;
^
TypeError: Cannot read property 'Observable' of undefined
at Object.<anonymous> (/Users/asafkatz/dev/autodll-webpack-plugin/node_modules/prettier-eslint-cli/dist/format-files.js:136:26)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/asafkatz/dev/autodll-webpack-plugin/node_modules/prettier-eslint-cli/dist/index.js:14:20)
at Module._compile (module.js:573:30)
const definePlugin = new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify(options.nodeEnv),
}
})
webpackConfig = {
plugins: [
definePlugin,
new AutoDllPlugin({
inject: true,
filename: '[name].dll.js',
plugins: [definePlugin],
entry: {
vendor: ['react', 'react-hot-loader'],
}
})
]
}