1

I am new to Angular2

When I renaming some file like app.states.ts to app.routes.ts then my editor is showing warning on one of my Componet. Result coming perfect, I did n't understood that why I am getting this warning.

I am using WEBSTROM IDe

This this enter image description here

Please help me to remove this warning

CozyAzure
  • 8,280
  • 7
  • 34
  • 52
Soumya Gangamwar
  • 954
  • 4
  • 16
  • 44
  • Same warnings both in Webstorm and VS code even if "experimentalDecorators" is set to true, any ideas? – t3__rry Apr 24 '17 at 15:44

2 Answers2

0

Add this option to your tsconfig.json:

{
  "compilerOptions": {
    ...
    "experimentalDecorators": true,
    ...
   }
}
slaesh
  • 16,659
  • 6
  • 50
  • 52
0

I have the similar problem and I solved it, when I find 2 files "package.json" in project folder and in folder "UI". I removed file from "UI" folder and everything went properly.