Encountering an Error:
An error occurred in File C:/wamp/www/angular2_demo/GiphySearch/src/app/app.component.ts stating that it is not part of the project defined by C:/wamp/www/angular2_demo/GiphySearch/e2e/tsconfig.json
The current folder structure is as follows:
/
/e2e/tsconfig.json
/src
(others)
The contents of tsconfig.js are:
{
"compileOnSave": false,
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"mapRoot": "",
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": false,
"rootDir": ".",
"sourceMap": true,
"sourceRoot": "/",
"target": "es5"
}
}
Attempts to resolve the issue by changing rootDir
or sourceRoot
to various values like ../
, ../src
, or /src
have been unsuccessful. What is the correct configuration for this scenario?