npm link with webpack – cannot find module

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)