私は角度とタイプスクリプトで新規です。輸入のために、@タイプ/ 3 NPMパッケージを苦労し、私はちょうど新鮮な角度プロジェクトを作成し、私は3つのパッケージをインポートして使用しようが、私はいくつかのニュービー間違いなく、私がやっている必要があります。このエラーにAngular2/4モジュールが見つかりません:エラー: '.. app'で 'three'を解決できません '.. app'で 'three'を解決してください
Module not found: Error: Can't resolve 'three' in 'E:\wamp64\www\pro-website-angular5\src\app'
を得続けますわかりません、これは私のコードです
import { Component } from '@angular/core';
import * as THREE from 'three';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent{
title = new THREE.Vector3(1,1,1);
}
から
Vector3
をインポートし、このファイルに関連するパスとして正しいパス「3」ですか? –