Hi,
since a week, or so, there is a new major Angular Version (10.0) which uses a new tsconfig.json structure “Solution Style” from typescript 3.9.
In my service classes I get the error “Experimental support for decorators is a feature that is subject to change in a future release. Set the ‘experimentalDecorators’ option in your ‘tsconfig’ or ‘jsconfig’ to remove this warning.”.
But the flag is already set in tsconfig-base.json:
tsconfig.json => references tsconfig.app.json => extends tsconfig.base.json
I assume codemix doesn’t support the new version for now, am I right?
It is easy to reproduce: Just create a new app with the angualr cli:
> npm install -g @angular/cli@latest
> ng new my-app
> ng generate service my-service
=> delete the “my-service.service.spec.ts” file. (For some unknown reason, I only get the warning if there is no spec file)
I also got the error in current current VS-Code 1.46.1 with typescript 3.9.4
But the settings.json worked in VS-Code ( From https://ihatetomatoes.net/how-to-remove-experimentaldecorators-warning-in-vscode/ ):
{
// allow experimentalDecorators - https://ihatetomatoes.net/how-to-remove-experimentaldecorators-warning-in-vscode/
"javascript.implicitProjectConfig.experimentalDecorators": true
}
BTW.: Modifying the tsconfig.json (duplicate config by adding compilerOptions ) or adding a jsconfig.json did not help at all.
But this settings.json didn’t worked in Eclipse Code-Mix ./vscode/settings.json (Maybe version update would help?).
Is the Problem known?
-
This topic was modified 5 years, 2 months ago by
brabenetz.
-
This topic was modified 5 years, 2 months ago by
brabenetz.