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:
- A saving… spinner pops up
- 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?
Pinging @julien-moreau who is the author of the editor
1 Like
@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
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
Cool ! Let’s run the « npm run build » command and run the native app of the editor located in « electron-packages/Linux-unpacked
1 Like
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 ✘)✹ ᐅ
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 ]
@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.
Perfect! You rox!
Don’t hesitate if you encounter any bug and report to the forum, will be a pleasure to fix
1 Like