[英]Importing npm linked React JSX project/modules into AngularJS TypeScript module not working
[英]Importing modules in TypeScript
我正在使用教程http://www.codeproject.com/Tips/1026938/AngularJS-Getting-Started-with-Visual-Studio並解決這一行的問題:
import {Component, View, bootstrap, NgFor} from "angular2/angular2";
我在這一行遇到了問題:TS2307 找不到模塊 'angular2/angular2' 我有與教程完全相同的文件和文件夾。 我嘗試了“typings/angular2/angular2”,但這也沒有幫助。
請參閱your-tutorial-link 中的第 4 步。 Visual Studio 需要這些設置來檢測模塊。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.