Resolution of NPM Local Package Dependencies - NPM v.5+

Hello,

I am running InteliiJ IDEA Ultimate 2017.3.5 on CentOS to develop a React application bootstrapped with create-react-app.

The module resolution works fine for the most part but doesn't seem to support dependencies declared using a local path (https://docs.npmjs.com/files/package.json#local-paths) created with NPM v.5.

Although it doesn't appear to be documented, NPM v.5 creates symlinks in a project's node_modules folder instead of copying the files over. I suppose this might create some trouble for reading a local package's index.

Is there any workaround for this? My particular local package is within the directory tree of my IntelliJ project (it actually exists as a module inside the project) if that helps any.

1 comment

What problems resolving modules did you face namely? Please can you share a sample project I can use to recreate the issue?

0

Please sign in to leave a comment.