node_modules not resolved in IntelliJ 15 EAP

I just created a new React application by cloning the Relay starter kit:

git clone https://github.com/relayjs/relay-starter-kit.git

I then created a Idea project using File -> New -> Project from existing sources.  The project was created successfully.  But, imports from node_modules are not resolved; e.g., in:

 
import React from 'react';

                                         ^^^^^^
'react' has a red squiggly line under it.  The mouse-over message says "Cannot resolve file 'react'".  I verified that react node_modules/react does in fact exist.

Any suggestions?

Thanks!

Greg

6 comments
Comment actions Permalink

Which IDEA 15 EAP version are you using?

0
Comment actions Permalink

Hi Serge,

I'm using Ultimate with bundled JDK:

IntelliJ IDEA (Minerva) 15-EAP IU-142.5239.7

Thanks!

Greg

0
Comment actions Permalink

I just upgraded to IntelliJ IDEA 15 EAP build 143.116.  The red squiggly lines are gone. There's no auto-complete for node_module package names in imports. But, it's definitely an improvement.

0
Comment actions Permalink

Hi Greg!

Thanks for the report. Right, you're correct about IntelliJ IDEA 15 EAP #142.5239.7 and #143.116.
The problem with no auto-complete for node_modules package names (#143.116) is already fixed (the fix will be available in the next IntelliJ IDEA 15 EAP, ETA is the next week).
Sorry about this regression.

Sergey

0
Comment actions Permalink

Great.  Thanks, Sergey.

Greg

0

Please sign in to leave a comment.