Skip to content Skip to sidebar Skip to footer

How To Make Intellij Idea Resolve Webpack Requires Out Of Node_modules Directory?

IntelliJ cannot resolve javascript modules called with webpack requires which are not inside the node_modules directory Imagine this project structure: `- project |- node_module

Solution 1:

I think this should work (or so it did in my case anyway).

In IntelliJ:

  1. Open the project
  2. File > Project Structure
  3. On the left hand side, select Modules
  4. From your directory structure, select the folders where your sources are (util and src) and mark them as Resources
  5. Click Apply

You should have code completion and documentation available now.

Post a Comment for "How To Make Intellij Idea Resolve Webpack Requires Out Of Node_modules Directory?"