Questions tagged «angular-tour-of-heroes»

29
Angular2教程(英雄之旅):找不到模块“ angular2-in-memory-web-api”
我遵循了教程。在更改app/maint.tsHttp章后,通过命令行启动应用程序时出现错误: app / main.ts(5,51):错误TS2307:找不到模块“ angular2-in-memory-web-api”。 (Visual Studio Code在main.ts中给了我相同的错误-红色波浪下划线。) 这是我的systemjs.config.js: /** * System configuration for Angular 2 samples * Adjust as necessary for your application needs. */ (function(global) { // map tells the System loader where to look for things var map = { 'app': 'app', // 'dist', '@angular': 'node_modules/@angular', 'angular2-in-memory-web-api': …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.