WebStorm - Include Packages does not work


#1

So I just started to learn meteor and tried to follow the “Todo App with React” Tutorial.
It all works very nice but Webstorm does not detected stuff I added with “meteor add …” like React.
When I type React.render(.. Webstorm says that React is unresolved variable or type React.

I googled and found out that I can import meteor packages as library when I open the packages file and import them with the link in the right corner. I did that but it didn’t help. Still got the same problem.
I opened the library file which Webstorm created for me and it is empty - I think there went somethring wrong on creating the library file from the packages.

Would be nice if anyone could help me on this!


#2

You should try https://confluence.jetbrains.com/display/WI/WebStorm+EAP which has out of box support for React.


#3

I did this while still using Meteor 1.1. Now that I have updated to 1.2, my included packages are still there, nothing has changed.


#4

@serkandurusoy I already use the EAP :confused:


#5

Anyone got an idea what the problem can be?


#6

Found the issue, it’s a bug in WebStorm: https://youtrack.jetbrains.com/issue/WEB-18331


#7

And it is now fixed in the latest eap build which is available for downloads.


#8

I got the latest EAP Verison (142.5255) and it’s not working for me. I got an answer on my bug report today so I dont think it’s fixed.


#9

Oops, sorry. This is fixed, but not released yet. Expect a release in about 2 weeks.