title: Rails/Webpacker is not working
body: <p>I have a Rails/React project. It's using Rails/webpack 3.3.0.
  To precompile react code, I executed:</p>
  
  <pre><code>rails assets:precompile RAILS_ENV=development
  </code></pre>
  
  <p>But I am getting this error:</p>
  
  <blockquote>
    <p>[Webpacker] Compilation failed:</p>
    
    <p>(node:47256) DeprecationWarning: Tapable.apply is deprecated. </p>
    
    <p>Call apply on the plugin directly instead (node:47256)
    DeprecationWarning:</p>
    
    <p>Tapable.plugin is deprecated. Use new API on <code>.hooks</code> instead</p>
    
    <p>TypeError: dep.getResourceIdentifier is not a function</p>
  </blockquote>
  
  <p>Is this something you faced before? Would you like to help me to fix thsi problem?</p>
  
  <p>Here is my package.json</p>
  
  <pre><code>{
    "dependencies": {
      "@rails/webpacker": "3.3.0",
      "babel-core": "6",
      "babel-loader": "^7.1.4",
      "babel-preset-react": "^6.24.1",
      "caniuse-lite": "^1.0.3000697",
      "classnames": "^2.2.5",
      "coffee-loader": "^0.9.0",
      "coffeescript": "^2.2.2",
      "debounce": "^1.1.0",
      "es6-shim": "^0.35.3",
      "extract-text-webpack-plugin": "^4.0.0-beta.0",
      "mobile-detect": "^1.4.1",
      "prop-types": "^15.6.1",
      "react": "16.0.0",
      "react-addons-css-transition-group": "^16.0.0-alpha.3",
      "react-addons-update": "^15.6.2",
      "react-bootstrap": "^0.32.1",
      "react-dom": "^16.2.0",
      "react-dom-factories": "^1.0.2",
      "react_ujs": "^2.4.4",
      "uglifyjs-webpack-plugin": "^1.2.5",
      "webpack": "4.0.0"
    },
    "devDependencies": {
      "webpack-cli": "^2.0.15",
      "webpack-dev-server": "^3.1.0"
    },
    "license": "UNLICENSED",
    "private": true
  }
  </code></pre>