(SystemJS) XHR error @angular/commobundles/common.umd.js/http not found

前端 未结 2 1364
醉酒成梦
醉酒成梦 2021-01-18 23:39

I am making a simple http request in my application.

I am using Angular 2 Quickstart and updating all my angular packages to 4.3.4

This is my package.

2条回答
  •  不思量自难忘°
    2021-01-19 00:34

    You should add map in systemjs configuration @angular/common/http

    '@angular/common/http': 'node_modules/@angular/common/bundles/common-http.umd.js'
    

    Additionally It requires tslib

    'tslib': 'npm:tslib/tslib.js'
    

提交回复
热议问题