【发布时间】:2018-03-29 19:59:07
【问题描述】:
我正在使用骨架导航骨架打字稿之一。
我正在尝试导入 Electron.remote,以便可以从 JS 中关闭电子窗口。这就是我在 config.js 中的内容:
paths: {
"*": "dist/*",
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*",
"node_modules:*": "node_modules/*"
},
map: {
"electron": "node_modules:electron/index.js",
}
在我的 JS 文件中我这样导入:
import * as electron from 'electron';
但我收到有关在路径中找不到 fs.js 的错误:
Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:9000/dist/fs.js
有人可以帮助我解决这个问题吗?
【问题讨论】:
标签: electron aurelia systemjs jspm