# Problem saving project in editor

**URL:** <https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238>\
**Category:** Questions\
**Tags:** editor\
**Created:** [August 23, 2019, 9:20am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238 "2019-08-23T09:20:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roibeard](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roibeard/32/4122_2.png) [@Roibeard](https://forum.babylonjs.com/u/Roibeard)\
**Post date:** [August 23, 2019, 9:20am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/1 "2019-08-23T09:20:52Z")

</div>

Hi,

Just getting started with the workflow tutorial - step 1 ends with saving the project.  
When I select save as from the project menu, 2 things happen:

1. A saving… spinner pops up
2. A new window opens asking me to log in with microsoft.  
I logged in with microsoft, and it redirected me to a micosoft user profile page, with payment options and shopping cart etc.

Is babylon.js a Microsoft subscription service? What’s going on?

---

<div class="post-metadata">

**Author:** ![aWeirdo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aweirdo/32/52_2.png) [@aWeirdo](https://forum.babylonjs.com/u/aWeirdo)\
**Post date:** [August 23, 2019, 10:02am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/2 "2019-08-23T10:02:56Z")

</div>

Pinging @julien-moreau who is the author of the editor

---

<div class="post-metadata">

**Author:** ![julien-moreau](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julien-moreau/32/12070_2.png) [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Post date:** [August 23, 2019, 10:29am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/3 "2019-08-23T10:29:07Z")

</div>

@Roibeard this is weird! Thanks for reporting.  
The online version of the editor is using OneDrive, I guess the onedrive page asked you to pay ☹  
I suggest that you use the local version of the editor which allows to save locally using you file system instead of using external services.  
You can download the native app here: [Getting Started - Babylon.js Documentation](https://doc.babylonjs.com/resources/getting_started#desktop-app)

---

<div class="post-metadata">

**Author:** ![Roibeard](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roibeard/32/4122_2.png) [@Roibeard](https://forum.babylonjs.com/u/Roibeard)\
**Post date:** [August 23, 2019, 10:40am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/4 "2019-08-23T10:40:50Z")

</div>

Hello @julien-moreau!  
Thank you for your reply.  
I am running the editor on localhost:1338,  
running in chrome on an Ubuntu 16.04 LTS

---

<div class="post-metadata">

**Author:** ![julien-moreau](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julien-moreau/32/12070_2.png) [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Post date:** [August 23, 2019, 11:31am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/5 "2019-08-23T11:31:34Z")

</div>

Cool ! Let’s run the « npm run build » command and run the native app of the editor located in « electron-packages/Linux-unpacked

---

<div class="post-metadata">

**Author:** ![Roibeard](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roibeard/32/4122_2.png) [@Roibeard](https://forum.babylonjs.com/u/Roibeard)\
**Post date:** [August 23, 2019, 11:44am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/6 "2019-08-23T11:44:57Z")

</div>

Aha!  
I see  
`error TS2688: Cannot find type definition file for 'electron'.`

Full console output after stopping server follows:

```
http-server stopped.

~/Desktop/DPT/babylon-test/Editor (master ✘)✹ ᐅ ls
assets babylonjs-editor-extensions.d.ts code-editor.html dist electron-packages index.html package-lock.json redirect.html src web.config
babylonjs-editor-code-editor.d.ts build css download favicon.ico node_modules preview.html script tsconfig.json web.Debug.config
babylonjs-editor.d.ts code-editor-debug.html declaration electron index-debug.html package.json README.md spectorjs.html vscode-extension web.Release.config
~/Desktop/DPT/babylon-test/Editor (master ✘)✹ ᐅ cd electron-packages/linux-unpacked 
~/Desktop/DPT/babylon-test/Editor/electron-packages/linux-unpacked (master ✘)✹ ᐅ npm run build

> babylonjs-editor@3.1.3 build /home/devugees/Desktop/DPT/babylon-test/Editor
> npm run compile && npm run compile-electron && npm run bundle

> babylonjs-editor@3.1.3 compile /home/devugees/Desktop/DPT/babylon-test/Editor
> tsc -p .

> babylonjs-editor@3.1.3 compile-electron /home/devugees/Desktop/DPT/babylon-test/Editor
> tsc -p ./electron

error TS2688: Cannot find type definition file for 'electron'.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! babylonjs-editor@3.1.3 compile-electron: `tsc -p ./electron`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the babylonjs-editor@3.1.3 compile-electron script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/devugees/.npm/_logs/2019-08-23T11_41_46_777Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! babylonjs-editor@3.1.3 build: `npm run compile && npm run compile-electron && npm run bundle`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the babylonjs-editor@3.1.3 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/devugees/.npm/_logs/2019-08-23T11_41_46_799Z-debug.log
~/Desktop/DPT/babylon-test/Editor/electron-packages/linux-unpacked (master ✘)✹ ᐅ
```

---

<div class="post-metadata">

**Author:** ![Roibeard](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roibeard/32/4122_2.png) [@Roibeard](https://forum.babylonjs.com/u/Roibeard)\
**Post date:** [August 23, 2019, 11:59am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/7 "2019-08-23T11:59:59Z")

</div>

The debug.log has Error: babylonjs-editor@3.1.3 build: `npm run compile && npm run compile-electron && npm run bundle`  
exit status 2.

full:

```
 info it worked if it ends with ok
   1 verbose cli ['/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build']
   2 info using npm@6.9.0
   3 info using node@v10.0.0
   4 verbose run-script ['prebuild', 'build', 'postbuild']
   5 info lifecycle babylonjs-editor@3.1.3~prebuild: babylonjs-editor@3.1.3
   6 info lifecycle babylonjs-editor@3.1.3~build: babylonjs-editor@3.1.3
   7 verbose lifecycle babylonjs-editor@3.1.3~build: unsafe-perm in lifecycle true
   8 verbose lifecycle babylonjs-editor@3.1.3~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/devugees/Desktop/DPT/babylon-test/Editor/node_modules/.bin:/home/devug ees/bin:/home/devugees/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/l ib/jvm/java-8-oracle/jre/bin
 9 verbose lifecycle babylonjs-editor@3.1.3~build: CWD: /home/devugees/Desktop/DPT/babylon-test/Editor
  10 silly lifecycle babylonjs-editor@3.1.3~build: Args: [ '-c',
  10 silly lifecycle 'npm run compile && npm run compile-electron && npm run bundle' ]
  11 silly lifecycle babylonjs-editor@3.1.3~build: Returned: code: 2 signal: null
  12 info lifecycle babylonjs-editor@3.1.3~build: Failed to exec build script
  13 verbose stack Error: babylonjs-editor@3.1.3 build: `npm run compile && npm run compile-electron && npm run bundle`
  13 verbose stack Exit status 2
  13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
  13 verbose stack at EventEmitter.emit (events.js:182:13)
  13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
  13 verbose stack at ChildProcess.emit (events.js:182:13)
  13 verbose stack at maybeClose (internal/child_process.js:947:16)
  13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5)
  14 verbose pkgid babylonjs-editor@3.1.3
  15 verbose cwd /home/devugees/Desktop/DPT/babylon-test/Editor/electron-packages/linux-unpacked
  16 verbose Linux 4.15.0-58-generic
  17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
  18 verbose node v10.0.0
  19 verbose npm v6.9.0
  20 error code ELIFECYCLE
  21 error errno 2
  22 error babylonjs-editor@3.1.3 build: `npm run compile && npm run compile-electron && npm run bundle`
  22 error Exit status 2
  23 error Failed at the babylonjs-editor@3.1.3 build script.
  23 error This is probably not a problem with npm. There is likely additional logging output above.
  24 verbose exit [2, true]
```

---

<div class="post-metadata">

**Author:** ![Roibeard](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roibeard/32/4122_2.png) [@Roibeard](https://forum.babylonjs.com/u/Roibeard)\
**Post date:** [August 27, 2019, 7:52am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/8 "2019-08-27T07:52:31Z")

</div>

@julien-moreau, that worked, thank you.  
I reinstalled electron and  
`npm run build`  
completed without error.  
Then I navigated to Editor/electron-packages/linux-unpacked and started the server by typing  
`npm run webserver`

then entered  
`./babylonjs-editor`  
on the command-line.

---

<div class="post-metadata">

**Author:** ![julien-moreau](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julien-moreau/32/12070_2.png) [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Post date:** [August 29, 2019, 10:56am UTC](https://forum.babylonjs.com/t/problem-saving-project-in-editor/5238/9 "2019-08-29T10:56:53Z")

</div>

Perfect! You rox!  
Don’t hesitate if you encounter any bug and report to the forum, will be a pleasure to fix 🙂
