Я хочу показать тост-уведомление в моей угловой форме. Я использую шаблон Visual Studio .NET Core 2.1 ... Я получаю
Невозможно получить / ошибка при запуске localhost ...
выполняется сборка ng с указанием следующих ошибок ...
.. / .. / .. / .. / .. / node_modules / ng2-toasty / index.d.ts (1,37): ошибка TS2307: не удается найти модуль '@ angular / core'.
../../../../../node_modules/ng2-toasty/src/shared.d.ts(1,30): ошибка TS2307: не удается найти модуль '@ angular / platform-browser'.
../../../../../node_modules/ng2-toasty/src/shared.d.ts(2,31): ошибка TS2307: не удается найти модуль '@ angular / core'.
../../../../../node_modules/ng2-toasty/src/toast.component.d.ts(1,30): ошибка TS2307: не удается найти модуль '@ angular / core'.
../../../../../node_modules/ng2-toasty/src/toasty.component.d.ts(1,24): ошибка TS2307: не удается найти модуль '@ angular / core'.
../../../../../node_modules/ng2-toasty/src/toasty.service.d.ts(1,28): ошибка TS2307: не удается найти модуль 'rxjs / Observable'.
AppModule:
import { VehicleFormComponent } from './vehicle-form/vehicle-form.component';
import { VehicleService } from './services/vehicle.service';
import { ToastyModule } from 'ng2-toasty';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { RouterModule } from '@angular/router';
@NgModule({
declarations: [
AppComponent,
NavMenuComponent,
HomeComponent,
VehicleFormComponent
],
imports: [
BrowserModule.withServerTransition({
appId: 'ng-cli-universal'
}),
FormsModule,
HttpClientModule,
FormsModule,
ToastyModule.forRoot(),
RouterModule.forRoot([
{
path: '',
component: HomeComponent,
pathMatch: 'full'
},
{
path: 'vehicles/new',
component: VehicleFormComponent
}
])
],
providers: [VehicleService],
bootstrap: [AppComponent]
})
export class AppModule {}