Ngx-admin: ExperimentalDecorator being warn VSCode

Created on 11 Aug 2016  路  7Comments  路  Source: akveo/ngx-admin

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [x ] question about the decisions made in the repository

Yesterday, I pulled latest changes I has 7 behind the master, then I removed my node_modules and npm install, once I open it in VSCode notice two things:

1- The warning below start happening for all Component names or decorators:
"Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."

I search everywhere, most people mention about setting the experimentalDecorators to true in the tsconfig.json, but that is already there. If I open the project without the latest changes it doesn't happen.

2 - All the places where uses require() in the src/app shows the warning: "Cannot find name 'require'."

Any ideas how to fix them?

Thank you
Abner

Most helpful comment

Guys found a solution here: https://github.com/Microsoft/vscode/issues/9232

I basically point the tsdk to the node_modules in the project:
My .vscode/settings.json:
"typescript.tsdk": "./node_modules/typescript/lib"

Thanks @shauvik for the suggestion.

All 7 comments

I also have the same issue

I also have the same issue

I also have the same issue

Adding "typescript.tsdk" to my vscode settings fixed this problem:

In my case, it was this.

 "typescript.tsdk":"/Users/shauvik/.nvm//versions/node/v6.3.1/lib/node_modules/typescript/lib"

Guys found a solution here: https://github.com/Microsoft/vscode/issues/9232

I basically point the tsdk to the node_modules in the project:
My .vscode/settings.json:
"typescript.tsdk": "./node_modules/typescript/lib"

Thanks @shauvik for the suggestion.

FYI, I got this error because I had a files section in my tsconfig.json file, and one of the files in that section was a file I had deleted. After removing the name of that deleted file from my tsconfig.json/files section, this issue went away.

Hey guys, we also moved some configurations for VS from our seed repo, please take a look at this documentation https://github.com/AngularClass/angular2-webpack-starter#visual-studio-code--debugger-for-chrome

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yanyim picture yanyim  路  3Comments

nfdavenport picture nfdavenport  路  3Comments

argnist picture argnist  路  4Comments

fabltd picture fabltd  路  3Comments

pulfabio picture pulfabio  路  4Comments