Recently, I made some changes to the architecture of my UI project and encountered a slew of errors (TS1219 and TS2304). Could the culprint be a poorly configured tsconfig.json file, or is it something else entirely? Despite encountering no issues when decorators are removed, I require their usage in my project. I am utilizing Visual Studio 2017 with an ASP.CORE 2.1 template for Angular 5.
Error TS1219 (TS) The warning suggests that experimental support for decorators may change in future releases. To address this, consider setting the 'experimentalDecorators' option accordingly.
Here is an excerpt from my tsconfig.json file:
{
"compileOnSave": false,
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2017",
"dom"
],
"moduleResolution": "node",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
]
}
}
https://i.sstatic.net/GiWIP.png
Should you require additional information, do not hesitate to reach out.
UPDATE: Errors with @NgModule in the app.module do not appear anymore. The errors specifically occur when I place ts files with decorators into folders. Could this issue stem from the files being nested too deeply?
You can view the folder tree structure on my bitbucket(BooksRework branch).