figma-linux
figma-linux copied to clipboard
How to contribute when does not even wants to start?
- App version: 7f19f8028676d133a3323e0920b126c9bac64878
- Operating System (Platform and Version): ArchLinux
- Type of installed package (Snap, AppImage, deb, rpm, pacman): git
Bug description Does transpile, every dependency gets installed but when starting dev or prod throws an error. (looks at logs below)
Additional context Yes, I have followed every step on the README.
- [x] Repository cloned
- [x] cd figma-linux
- [x] Rust installed:
- rustup 1.21.1 (2020-02-23)
- stable-x86_64-unknown-linux-gnu
- nightly-x86_64-unknown-linux-gnu (default)
- cargo 1.43.0-nightly
- rustup 1.21.1 (2020-02-23)
- [x] NPM & Node Installed:
- npm version: 6.14.4
- node version: v13.12.0
- [x] Upgraded node-sass because Python2 gets deprecated (I don't have python2 installed)
- [x] npm run dev
- [x] npm run build && npm run start
Logs:
theaifam5@destroyer TypeScript/figma-linux master ● npm run dev (master|✚8…)
> [email protected] dev /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux
> electron-webpack dev
┏ Renderer -------------------
ℹ 「wds」: Project is running at http://localhost:9080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/static, /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/dist/renderer-dll
┗ ----------------------------
┏ Main -----------------------
Hash: e1e5b8f8c20ba6300522
Version: webpack 4.16.3
Time: 772ms
Built at: 03/31/2020 8:28:54 PM
Asset Size Chunks Chunk Names
main.js 126 KiB main [emitted] main
main.js.map 165 KiB main [emitted] main
../package.json 905 bytes [emitted]
../resources/AppRun 2.15 KiB [emitted]
../resources/figma-linux-appimage.desktop 275 bytes [emitted]
../resources/figma-linux-snap.desktop 264 bytes [emitted]
../resources/figma-linux.desktop 269 bytes [emitted]
../resources/icons/128x128.png 10.2 KiB [emitted]
../resources/icons/192x192.png 16.1 KiB [emitted]
../resources/icons/24x24.png 4.95 KiB [emitted]
../resources/icons/256x256.png 27.5 KiB [emitted]
../resources/icons/36x36.png 6.08 KiB [emitted]
../resources/icons/48x48.png 5.85 KiB [emitted]
../resources/icons/384x384.png 58.6 KiB [emitted]
../resources/icons/64x64.png 6.19 KiB [emitted]
../resources/icons/72x72.png 7.2 KiB [emitted]
../resources/icons/96x96.png 8.03 KiB [emitted]
../resources/icons/512x512.png 116 KiB [emitted]
../resources/icons/scalable.svg 23.4 KiB [emitted]
Entrypoint main = main.js main.js.map
[0] multi ./node_modules/electron-webpack/out/electron-main-hmr/main-hmr ./src/main/index.ts 40 bytes {main} [built]
[./node_modules/electron-webpack/out/electron-main-hmr/main-hmr.js] 582 bytes {main} [built]
[./package.json] 3.46 KiB {main} [built]
[./src/constants/index.ts] 312 bytes {main} [built]
[./src/main/App.ts] 3.47 KiB {main} [built]
[./src/main/Args.ts] 925 bytes {main} [built]
[./src/main/Session.ts] 1.48 KiB {main} [built]
[./src/main/events/app.ts] 304 bytes {main} [built]
[./src/main/index.ts] 326 bytes {main} [built]
[./src/main/window/WindowManager.ts] 19.3 KiB {main} [built]
[./src/utils/Main/index.ts] 504 bytes {main} [built]
[electron] external "electron" 42 bytes {main} [built]
[electron-settings] external "electron-settings" 42 bytes {main} [built]
[electron-webpack/out/electron-main-hmr/HmrClient] external "electron-webpack/out/electron-main-hmr/HmrClient" 42 bytes {main} [built]
[source-map-support/source-map-support.js] external "source-map-support/source-map-support.js" 42 bytes {main} [built]
+ 35 hidden modules
┗ ----------------------------
┏ Renderer -------------------
ℹ 「wdm」: Hash: a3b088483deb4cc19ced
Version: webpack 4.16.3
Time: 1812ms
Built at: 03/31/2020 8:28:56 PM
Asset Size Chunks Chunk Names
../middleware/loadContent.js 361 KiB ../middleware/loadContent [emitted] ../middleware/loadContent
../middleware/loadMainContent.js 361 KiB ../middleware/loadMainContent [emitted] ../middleware/loadMainContent
styles.css 7.36 KiB renderer [emitted] renderer
renderer.js 436 KiB renderer [emitted] renderer
../middleware/loadContent.js.map 440 KiB ../middleware/loadContent [emitted] ../middleware/loadContent
../middleware/loadMainContent.js.map 440 KiB ../middleware/loadMainContent [emitted] ../middleware/loadMainContent
styles.css.map 10.6 KiB renderer [emitted] renderer
renderer.js.map 515 KiB renderer [emitted] renderer
index.html 606 bytes [emitted]
../index.html 347 bytes [emitted]
Entrypoint renderer = styles.css renderer.js styles.css.map renderer.js.map
Entrypoint ../middleware/loadMainContent = ../middleware/loadMainContent.js ../middleware/loadMainContent.js.map
Entrypoint ../middleware/loadContent = ../middleware/loadContent.js ../middleware/loadContent.js.map
[0] multi (webpack)-dev-server/client?http://localhost:9080 (webpack)/hot/dev-server.js css-hot-loader/hotModuleReplacement ./src/renderer/index.tsx 64 bytes {renderer} [built]
[1] multi (webpack)-dev-server/client?http://localhost:9080 (webpack)/hot/dev-server.js ./src/middleware/loadMainContent.ts 52 bytes {../middleware/loadMainContent} [built]
[2] multi (webpack)-dev-server/client?http://localhost:9080 (webpack)/hot/dev-server.js ./src/middleware/loadContent.ts 52 bytes {../middleware/loadContent} [built]
[./node_modules/css-hot-loader/hotModuleReplacement.js] 2.96 KiB {renderer} [built]
[./node_modules/lodash/debounce.js] 5.93 KiB {renderer} [built]
[./node_modules/loglevel/lib/loglevel.js] 7.68 KiB {renderer} {../middleware/loadMainContent} {../middleware/loadContent} [built]
[./node_modules/normalize-url/index.js] 3.85 KiB {renderer} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {renderer} {../middleware/loadMainContent} {../middleware/loadContent} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:9080] (webpack)-dev-server/client?http://localhost:9080 7.78 KiB {renderer} {../middleware/loadMainContent} {../middleware/loadContent} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.58 KiB {renderer} {../middleware/loadMainContent} {../middleware/loadContent} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 KiB {renderer} {../middleware/loadMainContent} {../middleware/loadContent} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 KiB {renderer} {../middleware/loadMainContent} {../middleware/loadContent} [built]
[./src/middleware/loadContent.ts] 152 bytes {../middleware/loadContent} [built]
[./src/middleware/loadMainContent.ts] 151 bytes {../middleware/loadMainContent} [built]
[./src/renderer/index.tsx] 710 bytes {renderer} [built]
+ 95 hidden modules
Child html-webpack-plugin for "../index.html":
1 asset
Entrypoint undefined = ../index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] 255 bytes {0} [built]
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[./node_modules/html-loader/dist/cjs.js?minimize=false&url=false!./dist/.renderer-index-template.html] 378 bytes {0} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/components/Body/Settings/style.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/Body/Settings/style.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/Body/Settings/style.scss 889 bytes {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/components/Body/Settings/views/Advanced/index.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/Body/Settings/views/Advanced/index.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/Body/Settings/views/Advanced/index.scss 457 bytes {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/components/Body/Settings/views/General/index.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/Body/Settings/views/General/index.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/Body/Settings/views/General/index.scss 457 bytes {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/components/Tabs/style.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/Tabs/style.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/Tabs/style.scss 948 bytes {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/components/TopPanel/style.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/TopPanel/style.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/TopPanel/style.scss 721 bytes {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/components/style.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/style.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/components/style.scss 1.79 KiB {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/elements/AreaList/index.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/elements/AreaList/index.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/elements/AreaList/index.scss 838 bytes {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/elements/CheckBox/index.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/elements/CheckBox/index.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/elements/CheckBox/index.scss 1.9 KiB {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/dist/cjs.js!src/renderer/elements/input/index.scss:
Entrypoint mini-css-extract-plugin = *
[./node_modules/css-loader/index.js!./node_modules/sass-loader/dist/cjs.js!./src/renderer/elements/input/index.scss] ./node_modules/css-loader!./node_modules/sass-loader/dist/cjs.js!./src/renderer/elements/input/index.scss 955 bytes {mini-css-extract-plugin} [built]
[./node_modules/css-loader/lib/css-base.js] 2.21 KiB {mini-css-extract-plugin} [built]
┗ ----------------------------
┏ Renderer -------------------
ℹ 「wdm」: Compiled successfully.
┗ ----------------------------
┏ Electron -------------------
Debugger listening on ws://127.0.0.1:34703/a19d7a2c-f599-4bcf-915c-59c3629edafa
For help, see: https://nodejs.org/en/docs/inspector
┗ ----------------------------
┏ Electron -------------------
App threw an error during load
┗ ----------------------------
┏ Electron -------------------
Error: Module did not self-register.
at process.func (electron/js2c/asar.js:140:31)
at process.func [as dlopen] (electron/js2c/asar.js:140:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:922:18)
at Object.func (electron/js2c/asar.js:140:31)
at Object.func [as .node] (electron/js2c/asar.js:140:31)
at Module.load (internal/modules/cjs/loader.js:735:32)
at Module._load (internal/modules/cjs/loader.js:648:12)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at Module.require (internal/modules/cjs/loader.js:775:19)
┗ ----------------------------
┏ Electron -------------------
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Module did not self-register.
at process.func (electron/js2c/asar.js:140:31)
at process.func [as dlopen] (electron/js2c/asar.js:140:31)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:922:18)
at Object.func (electron/js2c/asar.js:140:31)
at Object.func [as .node] (electron/js2c/asar.js:140:31)
at Module.load (internal/modules/cjs/loader.js:735:32)
at Module._load (internal/modules/cjs/loader.js:648:12)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at Module.require (internal/modules/cjs/loader.js:775:19)
┗ ----------------------------
┏ Main -----------------------
ERROR in /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/@types/node/index.d.ts(170,11):
TS2300: Duplicate identifier 'IteratorResult'.
┗ ----------------------------
┏ Main -----------------------
ERROR in /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/electron/electron.d.ts(5011,5):
TS2717: Subsequent property declarations must have the same type. Property 'click' must be of type '(item: MenuItemConstructorOptions, window: BrowserWindow, event: Event) => void', but here has type 'Function'.
┗ ----------------------------
┏ Main -----------------------
ERROR in /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/typescript/lib/lib.es2015.iterable.d.ts(41,6):
TS2300: Duplicate identifier 'IteratorResult'.
┗ ----------------------------
┏ Renderer -------------------
ERROR in /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/@types/node/index.d.ts(170,11):
TS2300: Duplicate identifier 'IteratorResult'.
┗ ----------------------------
┏ Renderer -------------------
ERROR in /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/electron/electron.d.ts(5011,5):
TS2717: Subsequent property declarations must have the same type. Property 'click' must be of type '(item: MenuItemConstructorOptions, window: BrowserWindow, event: Event) => void', but here has type 'Function'.
ERROR in /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/typescript/lib/lib.es2015.iterable.d.ts(41,6):
TS2300: Duplicate identifier 'IteratorResult'.
┗ ----------------------------
npm install:
theaifam5@destroyer TypeScript/figma-linux master ● npm install (master|✚8…)
> [email protected] install /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/figma-linux-rust-binding
> electron-build-env neon build --release
neon info forcing rebuild for new build settings
neon info running cargo
Compiling cc v1.0.40
Compiling memchr v2.2.1
Compiling lazy_static v1.3.0
Compiling regex-syntax v0.6.11
Compiling cfg-if v0.1.10
Compiling proc-macro2 v1.0.6
Compiling pkg-config v0.3.15
Compiling unicode-xid v0.2.0
Compiling libc v0.2.62
Compiling syn v1.0.11
Compiling bitflags v1.1.0
Compiling serde v1.0.104
Compiling log v0.4.8
Compiling ryu v1.0.2
Compiling itoa v0.4.4
Compiling semver-parser v0.7.0
Compiling cslice v0.2.0
Compiling thread_local v0.3.6
Compiling neon-build v0.3.3
Compiling semver v0.9.0
Compiling finder v0.1.5
Compiling aho-corasick v0.7.6
Compiling freetype-sys v0.7.1
Compiling quote v1.0.2
Compiling regex v1.2.1
Compiling libz-sys v1.0.25
Compiling freetype-rs v0.21.0
Compiling serde_derive v1.0.104
Compiling neon-sys v0.3.3
Compiling neon-runtime v0.3.3
Compiling neon v0.3.3
Compiling figma-linux-rust-binding v0.1.0 (/home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/figma-linux-rust-binding/native)
Compiling serde_json v1.0.44
Compiling libfonthelper v0.2.4
warning: unnecessary parentheses around `if` condition
--> src/async_font.rs:40:24
|
40 | if (font.path.eq("")) {
| ^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: `#[warn(unused_parens)]` on by default
Finished release [optimized] target(s) in 21.57s
neon info generating native/index.node
> [email protected] install /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/husky
> node husky install
husky > Setting up git hooks
husky > Done
> [email protected] install /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/node-sass
> node scripts/install.js
Cached binary found at /home/theaifam5/.npm/node-sass/4.13.1/linux-x64-79_binding.node
> [email protected] postinstall /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/app-builder-lib/node_modules/ejs
> node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
> [email protected] postinstall /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/dmg-builder/node_modules/ejs
> node ./postinstall.js
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
> [email protected] postinstall /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/global-agent/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> [email protected] postinstall /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/electron
> node install.js
> [email protected] postinstall /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/husky
> opencollective-postinstall || exit 0
Thank you for using husky!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/husky/donate
> [email protected] postinstall /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/node-sass
> node scripts/build.js
Binary found at /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/node-sass/vendor/linux-x64-79/binding.node
Testing binary
Binary is fine
> [email protected] postinstall /home/theaifam5/Documents/Projects/TheAifam5/TypeScript/figma-linux/node_modules/styled-components
> node ./scripts/postinstall.js || exit 0
Use styled-components at work? Consider supporting our development efforts at opencollective.com/styled-components
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 2197 packages from 1060 contributors and audited 24400 packages in 44.06s
13 packages are looking for funding
run `npm fund` for details
found 1880 vulnerabilities (520 low, 14 moderate, 1346 high)
run `npm audit fix` to fix them, or `npm audit` for details
yep, this happened on arch after the recent package upgrades:
electron (11.3.0-1 -> 12.0.2-1)
nodejs (15.12.0-1 -> 15.13.0-1)
downgrading temporarily allows figma to launch again.
Seems to work with the new electron now (figma-linux 0.7.2, electron 12.0.5-1) so it can probably be closed. 👍