# Need help importing Electron in Aurelia app

**URL:** <https://discourse.aurelia.io/t/need-help-importing-electron-in-aurelia-app/994>\
**Category:** Help Requests\
**Created:** [March 27, 2018, 5:08pm UTC](https://discourse.aurelia.io/t/need-help-importing-electron-in-aurelia-app/994 "2018-03-27T17:08:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benydc](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/benydc/32/562_2.png) [@benydc](https://discourse.aurelia.io/u/benydc)\
**Post date:** [March 27, 2018, 5:08pm UTC](https://discourse.aurelia.io/t/need-help-importing-electron-in-aurelia-app/994/1 "2018-03-27T17:08:07Z")

</div>

I’m using one of the skeleton-navigation, skeleton-typescript.

I’m trying to import Electron.remote so I can close the electron window from within the JS. This is what I have in config.js:  
paths: {  
“_": "dist/_”,  
“github:_": "jspm\_packages/github/_”,  
“npm:_": "jspm\_packages/npm/_”,  
“node\_modules:_": "node\_modules/_”  
},  
map: {  
“electron”: “node\_modules:electron/index.js”,  
}

and in my JS file I import like this:  
`import * as electron from 'electron';`

but I get error regarding fs.js not found in path:  
`Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:9000/dist/fs.js`

Can someone help on how I can fix this issue? I tried installing electron with jspm and map fs to @node/fs but that complains with error:  
`Error: (SystemJS) Error loading @node/fs. Can only load node core modules in Node.`

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [April 2, 2018, 5:31pm UTC](https://discourse.aurelia.io/t/need-help-importing-electron-in-aurelia-app/994/2 "2018-04-02T17:31:08Z")

</div>

> <https://stackoverflow.com/questions/49517953/need-help-importing-electron-in-aurelia-app>

wonder why discourse shows me this thread as new?  
(-:

---

<div class="post-metadata">

**Author:** ![benydc](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/benydc/32/562_2.png) [@benydc](https://discourse.aurelia.io/u/benydc)\
**Post date:** [April 3, 2018, 10:45am UTC](https://discourse.aurelia.io/t/need-help-importing-electron-in-aurelia-app/994/3 "2018-04-03T10:45:04Z")

</div>

I opened this before stackoverflow and it was put into waiting until a member accepted this post as not spam…

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [April 3, 2018, 10:47am UTC](https://discourse.aurelia.io/t/need-help-importing-electron-in-aurelia-app/994/4 "2018-04-03T10:47:42Z")

</div>

Ahh… I see (-:  
Well… I’m glad we solved that one
