Using external Angular 4 component

When I try to use an external Angular component in my AppModule I get an error that says that the symbol cannot be properly resolved. As soon as I suspend ReSharper the problem is gone and I get type information for the component. It seems that ReSharper cannot pick up the type information for the component from an external .ts Angular component file inside node_modules.

0
5 comments

Hello!

 

Thank you for contacting us.

Could you please try to install ReSharper EAP version - https://www.jetbrains.com/resharper/eap/.

Seems that the problem is in TypeScript 2.3/2.4 support which is introduced only in ReSharper 2017.2 EAP. 

Please let us know if it helps.

Thank you.

0
Avatar
Permanently deleted user

Hello!

 

I just reinstalled ReSharper 2017.2 EAP 9 but the problem remained.

Is there something else I can do ?

Thank you!

0

Thank you for the feedback.

 

Could you please provide the following information:

  • what external component you are using and what type actually ReSharper cannot resolve?
  • some screenshot illustrating ReSharper error
  • all types from @types section in package.json

Thank you.

0
Avatar
Permanently deleted user

Sorry for the late response.

 

The informations you asked for:

  • I am trying to use jqWidgets framework through npm (http://www.jqwidgets.com/)
  • The error:

  • Since the framework is written in typescript there is no separate type information file, the imported component itself contains it.

Thank you.

 

 

0

Hello!

 

Thank you for the provided information.

Correspondent issue is reported in our issue tracker - https://youtrack.jetbrains.com/issue/RSRP-465807

Please feel free to comment or vote for it.

Thank you.

0

Please sign in to leave a comment.