Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm unknown HTML tag Angular 2

Just downloaded latest WebStorm trial to try out on existing Angular 2 CLI v6.2.4.

I did the file open of my root project folder. I see all the files in IDE explorer. However cannot navigate code (Ctrl + F1) says unknown HTML tag.

What are the steps to configure WebStorm for Angular 2? I googled and also went to Settings -> Languages & Frameworks -> JS -> Libraries -> Add and not listed there.

For "Create new project" I do see Angular listed but this is an existing CLI project created outside of WebStorm.

Please advise how to setup.

like image 541
Gullu Avatar asked Dec 07 '22 13:12

Gullu


1 Answers

Please make sure that AngularJS plugin is enabled in Preferences | Plugins and @angular node_modules are not excluded from project: Angular support is only enabled if node_modules/@angular folder is included in index. Expand node_modules in Project tool window to check what @angular folder looks like there: excluded folders usually have orange color

like image 54
lena Avatar answered Dec 26 '22 02:12

lena