{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1964","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1964/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1964/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1964/events","html_url":"https://github.com/webpack/webpack/issues/1964","id":130209690,"number":1964,"title":"Webpack 2: TypeError: _webpack2.default.optimize.OccurenceOrderPlugin is not a function","user":{"login":"glennreyes","id":5080854,"avatar_url":"https://avatars.githubusercontent.com/u/5080854?v=3","gravatar_id":"","url":"https://api.github.com/users/glennreyes","html_url":"https://github.com/glennreyes","followers_url":"https://api.github.com/users/glennreyes/followers","following_url":"https://api.github.com/users/glennreyes/following{/other_user}","gists_url":"https://api.github.com/users/glennreyes/gists{/gist_id}","starred_url":"https://api.github.com/users/glennreyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennreyes/subscriptions","organizations_url":"https://api.github.com/users/glennreyes/orgs","repos_url":"https://api.github.com/users/glennreyes/repos","events_url":"https://api.github.com/users/glennreyes/events{/privacy}","received_events_url":"https://api.github.com/users/glennreyes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-31T23:09:10Z","updated_at":"2016-02-01T09:33:47Z","closed_at":"2016-02-01T09:33:47Z","body":"I'm using webpack with an express server and the webpack-hot-middleware, while I'm getting following error on starting:\r\n```shell\r\n> babel-node server\r\n\r\n/Users/Glenn/Projects/react-boilerplate/webpack.config.js:28\r\n  plugins: [new _webpack2.default.optimize.OccurenceOrderPlugin(), new _webpack2.default.HotModuleReplacementPlugin(), new _webpack2.default.NoErrorsPlugin()]\r\n            ^\r\n\r\nTypeError: _webpack2.default.optimize.OccurenceOrderPlugin is not a function\r\n    at Object.<anonymous> (webpack.config.js:24:5)\r\n    at Module._compile (module.js:413:34)\r\n    at loader (/Users/Glenn/Projects/react-boilerplate/node_modules/babel-register/lib/node.js:130:5)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/Glenn/Projects/react-boilerplate/node_modules/babel-register/lib/node.js:140:7)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Module.require (module.js:367:17)\r\n    at require (internal/module.js:16:19)\r\n    at Object.<anonymous> (/Users/Glenn/Projects/react-boilerplate/server.js:23:17)\r\n    at Module._compile (module.js:413:34)\r\n\r\nnpm ERR! Darwin 15.3.0\r\nnpm ERR! argv \"/usr/local/Cellar/node/5.5.0/bin/node\" \"/usr/local/bin/npm\" \"start\"\r\nnpm ERR! node v5.5.0\r\nnpm ERR! npm  v3.5.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! react-boilerplate@1.0.0 start: `babel-node server`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the react-boilerplate@1.0.0 start script 'babel-node server'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the react-boilerplate package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     babel-node server\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs react-boilerplate\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls react-boilerplate\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/Glenn/Projects/react-boilerplate/npm-debug.log\r\n```\r\n\r\nI'm using babel-node as I am using ES6 imports/exports on my server configuration.\r\n\r\nThe plugins in the webpack config looks like this:\r\n```es6\r\n...\r\n  plugins: [\r\n    new webpack.optimize.OccurenceOrderPlugin(),\r\n    new webpack.HotModuleReplacementPlugin(),\r\n    new webpack.NoErrorsPlugin()\r\n  ]\r\n...\r\n```\r\n\r\nAny clues?"}}