npm link with webpack - cannot find module

Also make sure you have bundle and yarn installed and executed in the linked package


I was facing a similar issue with webpack and ended up by adding this my webpack.config.js:

module.exports = {
    resolve: {
        symlinks: false
    }
};

Here is the link to webpack docs. Since your question there happened a lot to webpack and their api, so I do not know how much relevance my answer still has according to your question. But for people facing this or a similar issue today this could be a solution. As to be seen, there are still people complaining about:

  • Webpack GitHub Issue 1643
  • Webpack GitHub Issue 1866