{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/14827","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/14827/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/14827/comments","events_url":"https://api.github.com/repos/electron/electron/issues/14827/events","html_url":"https://github.com/electron/electron/issues/14827","id":364253480,"node_id":"MDU6SXNzdWUzNjQyNTM0ODA=","number":14827,"title":"TensorflowJS node","user":{"login":"ran-j","id":17410205,"node_id":"MDQ6VXNlcjE3NDEwMjA1","avatar_url":"https://avatars0.githubusercontent.com/u/17410205?v=4","gravatar_id":"","url":"https://api.github.com/users/ran-j","html_url":"https://github.com/ran-j","followers_url":"https://api.github.com/users/ran-j/followers","following_url":"https://api.github.com/users/ran-j/following{/other_user}","gists_url":"https://api.github.com/users/ran-j/gists{/gist_id}","starred_url":"https://api.github.com/users/ran-j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ran-j/subscriptions","organizations_url":"https://api.github.com/users/ran-j/orgs","repos_url":"https://api.github.com/users/ran-j/repos","events_url":"https://api.github.com/users/ran-j/events{/privacy}","received_events_url":"https://api.github.com/users/ran-j/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-26T23:45:17Z","updated_at":"2018-09-27T02:47:37Z","closed_at":null,"author_association":"NONE","body":"Im using Node.js 10.2.0, Chromium 66.0.3359.181, and Electron 3.0.0. \r\n\r\nWhen I use in development \"electron .\" works perfectly, but when I build for windows, I get errors with tensorflow.\r\n\r\n```sh\r\n$ npm rebuild --runtime=electron --target=3.0.0 --disturl=https://atom.io/download/atom-shell --abi=57\r\n$ electron-packager . yumikoai --overwrite --asar --platform=win32 --arch=ia32 --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\\\"yumikoai\\\"\r\n```\r\n I got this error\r\n```\r\nC:\\Users\\Ran-pc\\Documents\\Projetos\\yumikoAI\\release-builds\\yumikoai-win32-ia32\\resources\\app.asar\\node_modules\\@tensorflow\\tfjs\\node_modules\\@tensorflow\\tfjs-core\\dist\\environment.js:184 Error: \\\\?\\C:\\Users\\Ran-pc\\AppData\\Local\\Temp\\abf50e71-8ad2-4862-bad2-2a6dbce79ad8.tmp.node is not a valid Win32 application.\r\n\\\\?\\C:\\Users\\Ran-pc\\AppData\\Local\\Temp\\abf50e71-8ad2-4862-bad2-2a6dbce79ad8.tmp.node\r\n    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)\r\n    at Object.Module._extensions..node (internal/modules/cjs/loader.js:740)\r\n    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:180:18)\r\n    at Module.load (internal/modules/cjs/loader.js:620)\r\n    at tryModuleLoad (internal/modules/cjs/loader.js:559)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:551)\r\n    at Module.require (internal/modules/cjs/loader.js:658)\r\n    at require (internal/modules/cjs/helpers.js:20)\r\n    at bindings (C:\\Users\\Ran-pc\\Documents\\Projetos\\yumikoAI\\release-builds\\yumikoai-win32-ia32\\resources\\app.asar\\node_modules\\bindings\\bindings.js:81)\r\n    at C:\\Users\\Ran-pc\\Documents\\Projetos\\yumikoAI\\release-builds\\yumikoai-win32-ia32\\resources\\app.asar\\node_modules\\@tensorflow\\tfjs-node\\dist\\index.js:10\r\nEnvironment.registerBackend @ C:\\Users\\Ran-pc\\Documents\\Projetos\\yumikoAI\\release-builds\\yumikoai-win32-ia32\\resources\\app.asar\\node_modules\\@tensorflow\\tfjs\\node_modules\\@tensorflow\\tfjs-core\\dist\\environment.js:184\r\n(anonymous) @ C:\\Users\\Ran-pc\\Documents\\Projetos\\yumikoAI\\release-builds\\yumikoai-win32-ia32\\resources\\app.asar\\node_modules\\@tensorflow\\tfjs-node\\dist\\index.js:9\r\n(anonymous) @ C:\\Users\\Ran-pc\\Documents\\Projetos\\yumikoAI\\release-builds\\yumikoai-win32-ia32\\resources\\app.asar\\node_modules\\@tensorflow\\tfjs-node\\dist\\index.js:20\r\nModule._compile @ internal/modules/cjs/loader.js:711\r\nModule._extensions..js @ internal/modules/cjs/loader.js:722\r\nModule.load @ internal/modules/cjs/loader.js:620\r\ntryModuleLoad @ internal/modules/cjs/loader.js:559\r\nModule._load @ internal/modules/cjs/loader.js:551\r\nModule.require @ internal/modules/cjs/loader.js:658\r\nrequire @ internal/modules/cjs/helpers.js:20\r\n(anonymous) @ index.html:26\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/424938964","html_url":"https://github.com/electron/electron/issues/14827#issuecomment-424938964","issue_url":"https://api.github.com/repos/electron/electron/issues/14827","id":424938964,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDkzODk2NA==","user":{"login":"MarshallOfSound","id":6634592,"node_id":"MDQ6VXNlcjY2MzQ1OTI=","avatar_url":"https://avatars3.githubusercontent.com/u/6634592?v=4","gravatar_id":"","url":"https://api.github.com/users/MarshallOfSound","html_url":"https://github.com/MarshallOfSound","followers_url":"https://api.github.com/users/MarshallOfSound/followers","following_url":"https://api.github.com/users/MarshallOfSound/following{/other_user}","gists_url":"https://api.github.com/users/MarshallOfSound/gists{/gist_id}","starred_url":"https://api.github.com/users/MarshallOfSound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarshallOfSound/subscriptions","organizations_url":"https://api.github.com/users/MarshallOfSound/orgs","repos_url":"https://api.github.com/users/MarshallOfSound/repos","events_url":"https://api.github.com/users/MarshallOfSound/events{/privacy}","received_events_url":"https://api.github.com/users/MarshallOfSound/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T02:47:37Z","updated_at":"2018-09-27T02:47:37Z","author_association":"MEMBER","body":"TensorflowJS is a native module, you must build native modules on the target platform (E.g. Windows target == build on windows)"}}
{"actor":{"display_login":"MarshallOfSound"}}