我是Aurelia的初学者,学习将代码块放在一起。Aurelia没有这样的文件或目录aurelia-fetch-client.js
itemWithPicture.js
import "fetch";
import {HttpClient, json} from "aurelia-fetch-client";
let httpClient = new HttpClient();
export class ItemWithPicture {
constructor() {
this.heading = "Item with Picture";
}
}
我得到的错误是
{ [Error: ENOENT: no such file or directory, open 'C:\GitRepo\pictureRecord\n
ode_modules\aurelia-fetch-client.js']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\GitRepo\\pictureRecord\\node_modules\\aurelia-fetch-client.js',
moduleTree: [ 'itemWithPicture' ],
fileName: 'C:/GitRepo/pictureRecord/src/itemWithPicture.js' },
duration: [ 0, 2993168 ],
time: 1470835605761 }
我想出了这个问题。需要在config.js下为babeloptions添加“es7.decorators”。 – Celeste
请发表您的评论作为您的问题的答案,以便其他人可以更容易地找到它,并且如果它对他们有用,也可以使用它提高效果:-) – Oliver