で定義されたプロジェクトではありません。app.component.tsだから私はこのエラーを取得するtsconfig.json
File C:/wamp/www/angular2_demo/GiphySearch/src/app/app.component.tsis not in project defined by C:/wamp/www/angular2_demo/GiphySearch/e2e/tsconfig.json
私のフォルダ構造は
/
/e2e/tsconfig.json
/src
(others)
tsconfig.jsであることは、このコンテンツ
を持っています{
"compileOnSave": false,
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"mapRoot": "",
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": false,
"rootDir": ".",
"sourceMap": true,
"sourceRoot": "/",
"target": "es5"
}
}
rootDir
またはsourceRoot
を../
または012のいずれかとして変更しようとしましたまたは/src
ですが、何も機能しませんでした。どのように正しく構成する必要がありますか?
あなたは '。/ src'を試しましたか?私のangle-cliは/ srcの中にtsconfigを生成し、 '' mapRoot ''しか含んでいません: – j2L4e
まだ動作していません – Pentium10