kittencup / angular2-ama-cn

angular2 随便问
692 stars 101 forks source link

angular2 自写的【属性指令】404 not found #219

Open ghost opened 7 years ago

ghost commented 7 years ago

`app.c.ts: import {doi} from "tshello";

`

Error:localhost/:18 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/tshello(…) 请问是否要修改systemjs.config.js?

hstarorg commented 7 years ago

请使用./方式制定tshello地址。

ghost commented 7 years ago

sorry, 少说了一个前提: 是引入了第三方npm包("tshello")

直接使用:找不到 import {doi} from "tshello";

这样可以: import {doi} from "node_modules/tshello/index.js";

这样也可以: 1、修改:systemjs.config.js 2、再引用:import {doi} from "tshello";